aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 5cd61bdfcf6b879a61e65e09325e11fea08216ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM python:3.7-alpine

RUN apk add --no-cache gcc libc-dev libffi-dev zlib-dev openssl-dev jpeg-dev ffmpeg freetype-dev

WORKDIR /usr/src/app

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

EXPOSE 8000

CMD [ "gunicorn", "-b", "0.0.0.0:8000", "-w", "1", "bot:app", "--log-file", "-" ]