Files

16 lines
361 B
Docker
Raw Permalink Normal View History

2025-12-14 10:39:18 +03:00
FROM python:3.11-slim
RUN apt update && apt install -y curl sqlite3 xxd
WORKDIR /app
RUN echo SECRET_KEY=$(xxd -l 20 -p /dev/urandom) >> .env
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ .
EXPOSE 5050
CMD ["gunicorn", "--worker-class", "gevent", "--worker-connections", "1024", "--bind", "0.0.0.0:5050", "app:app"]