Files
ForME/Dockerfile

18 lines
341 B
Docker

FROM python:3.11-slim
WORKDIR /app
# System deps (optional): none needed for sqlite
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt gunicorn
COPY . .
ENV FLASK_ENV=production
ENV PORT=5000
EXPOSE 5000
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app", "--workers", "2", "--threads", "4", "--timeout", "60"]