Files
kiskaadee f4a70ffe1d feat(infra): add multi-stage Dockerfile, split Traefik routing, and
appctl manifest.

- Implement multi-stage Dockerfile compiling React with Node 20 and
  serving via uv/FastAPI
- Configure docker-compose.yml with split Traefik routers (public 10,
  admin Authelia 20)
- Add appctl manifest apptaml targeting demos.roadtotech.me on proxy-net
- Add .dockerignore for clean build context
- Update roadmap reflecting completion of Phase 5 infrastructure tasks.
2026-10-01 01:41:52 -05:00

18 lines
553 B
Docker

# Stage 1: Build React frontend
FROM node:20-alpine AS frontend-build
WORKDIR /build
COPY frontend/package.json frontend/package-lock.json ./
RUN npm ci
COPY frontend/ ./
RUN npm run build
# Stage 2: Python runtime
FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim
WORKDIR /app
ENV UV_COMPILE_BYTECODE=1
COPY backend/pyproject.toml backend/uv.lock* ./
RUN uv sync --frozen --no-install-project --no-dev
COPY backend/ .
COPY --from=frontend-build /build/dist ./static
CMD ["uv", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]