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"]