Skip to content

Commit dbdb613

Browse files
Update Dockerfile to clarify architectural decision for using Python/uvicorn for frontend serving
1 parent efce61a commit dbdb613

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/frontend/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ COPY . .
1616
RUN npm run build
1717

1818
# Runtime stage
19-
# Note: Using Python runtime to serve frontend via uvicorn for integration with backend API
20-
# This allows unified deployment architecture for both frontend and backend services
19+
# ARCHITECTURAL DECISION: Using Python/uvicorn instead of nginx for frontend serving
20+
# Reasons:
21+
# 1. Unified deployment model with backend (both use Python/uvicorn)
22+
# 2. Consistent container app configuration in Azure
23+
# 3. Simplified orchestration and monitoring
24+
# 4. frontend_server.py may handle API proxying or server-side logic
2125
FROM python:3.11-slim
2226

2327
WORKDIR /app

0 commit comments

Comments
 (0)