We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06ef68b commit c1fff7dCopy full SHA for c1fff7d
src/frontend/Dockerfile
@@ -33,7 +33,11 @@ COPY pyproject.toml requirements.txt* uv.lock* ./
33
34
# Install Python dependencies using UV
35
RUN --mount=type=cache,target=/root/.cache/uv \
36
- uv pip install --system pyproject.toml && uv pip install --system "uvicorn[standard]"; \
+ if [ -f "requirements.txt" ]; then \
37
+ uv pip install --system -r requirements.txt && uv pip install --system "uvicorn[standard]"; \
38
+ else \
39
+ uv pip install --system pyproject.toml && uv pip install --system "uvicorn[standard]"; \
40
+ fi
41
42
# Stage 3: Final production image
43
FROM python:3.11-slim-bullseye
0 commit comments