Skip to content

Commit c1fff7d

Browse files
updated the frontend docker file with the main branch
1 parent 06ef68b commit c1fff7d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/frontend/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ COPY pyproject.toml requirements.txt* uv.lock* ./
3333

3434
# Install Python dependencies using UV
3535
RUN --mount=type=cache,target=/root/.cache/uv \
36-
uv pip install --system pyproject.toml && uv pip install --system "uvicorn[standard]"; \
36+
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
3741

3842
# Stage 3: Final production image
3943
FROM python:3.11-slim-bullseye

0 commit comments

Comments
 (0)