summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: cd391aea834f6c13baed1b7e8416416574170aa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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"]