feat: Add initial backend application and update Dockerfile for its setup.

This commit is contained in:
2026-03-13 09:33:07 -04:00
parent 023e399d1d
commit 05b44a5404
2 changed files with 24 additions and 3 deletions
+4 -3
View File
@@ -34,16 +34,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
# Create non-root user
RUN useradd --create-home --shell /bin/bash foxy
WORKDIR /app
RUN chown foxy:foxy /app
# Python dependencies
COPY backend/requirements.txt ./
COPY --chown=foxy:foxy backend/requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Backend source
COPY backend/app ./app
COPY --chown=foxy:foxy backend/app ./app
# Frontend static files (served by FastAPI)
COPY --from=frontend-build /build/dist ./static
COPY --chown=foxy:foxy --from=frontend-build /build/dist ./static
# Healthcheck
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \