Plantilla inicial del taller
publicar / publicar (push) Failing after 3s

This commit is contained in:
taller committed 2026-11-22 18:51:28 +00:00
1 parent 5770d23fb8
commit 48967682c5
22 files changed
+1157

No files matched your search

+11
View File
@@ -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"]