EducateEnIA / Dockerfile
Edoruin's picture
Relacionando bases de datos con la pagina
5efdba4
Raw
History Blame Contribute Delete
467 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ ./app/
ENV FLASK_APP=app.app
ENV FLASK_ENV=production
ENV PORT=7860
ENV DATA_DIR=/data
EXPOSE 7860
RUN mkdir -p /data && chmod 755 /data
VOLUME ["/data"]
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--timeout", "120", "app.app:app"]