19 lines
323 B
Docker
19 lines
323 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
RUN pip install gunicorn
|
|
|
|
COPY . .
|
|
|
|
ENV FLASK_APP=run.py
|
|
ENV FLASK_ENV=production
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "run:app", "--workers=2", "--access-logfile=-"]
|