FROM python:3.11-slim
WORKDIR /app
COPY services/dashboard/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir pytest httpx
COPY services/dashboard/backend/ ./backend/
# Smoke test: verify the app imports and starts correctly
CMD ["python", "-c", "from backend.main import app; print(f'FastAPI app loaded: {len(app.routes)} routes'); print('OK')"]
