This commit is contained in:
1 parent
2223debc11
commit
86e3321000
22 files changed
+1157
No files matched your search
@@ -0,0 +1,11 @@
|
||||
# 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"]
|
||||
Reference in new issue
Block a user