# Se construye desde la RAÍZ del repo (el CI hace: docker build -f api/Dockerfile .) FROM python:3.12-slim WORKDIR /app COPY api/requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY api/ . COPY alumnos.csv . ENV DB_PATH=/data/votos.db CENSO_PATH=/app/alumnos.csv RUN mkdir -p /data EXPOSE 8000 CMD ["gunicorn", "-b", "0.0.0.0:8000", "-w", "2", "--threads", "4", "app:app"]