Siirrä kipina-codebench projektin päätasolle
This commit is contained in:
5
kipina-codebench/Dockerfile.pytest
Normal file
5
kipina-codebench/Dockerfile.pytest
Normal file
@@ -0,0 +1,5 @@
|
||||
FROM python:3.14-slim
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
|
||||
WORKDIR /work
|
||||
ENV PYTHONPATH=/work
|
||||
ENTRYPOINT ["sh", "-c", "uv init --no-readme --python '>=3.14' 2>/dev/null && rm -f hello.py main.py && uv add fastapi 'uvicorn[standard]' sqlalchemy pytest httpx 2>/dev/null && cp /src/*.py . && rm -f app.db test.db && uv run pytest test_main.py -v --tb=short 2>&1"]
|
||||
Reference in New Issue
Block a user