76278f5fe1
backend/routers/analyze.py imports services.* (root package), not backend.services.* - so the earlier A1/A2/A3 edits landed in an unused duplicate. Also COPY/mount services/ so the container can start at all (ModuleNotFoundError: No module named services).
16 lines
382 B
Docker
16 lines
382 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y gcc postgresql-client && rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY backend/requirements.txt ./requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY backend ./backend
|
|
COPY services ./services
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000"]
|