EducateEnIA / Dockerfile
Edoruin's picture
update with teacher and students sides
fe6c501
Raw
History Blame
428 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
VOLUME ["/data"]
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--timeout", "120", "app.app:app"]