FROM python:3.9 as pastepy WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . EXPOSE 8000 CMD ["gunicorn", "-b", ":8000", "-w", "2", "-k", "gevent", "pastepy:app"]