summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 53e657e19c7dc0fdc8db64d5973e7a6db3351a73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM python:3.9 as pyfbin

WORKDIR /app
COPY requirements.txt .

RUN apt-get update && apt-get install -y --no-install-recommends \
	ffmpegthumbnailer \
	&& apt-get clean && rm -rf /var/lib/apt/lists/* \
	&& pip install --no-cache-dir -r requirements.txt

COPY . .

EXPOSE 8000

CMD ["gunicorn", "-b", ":8000", "-w", "2", "-k", "gevent", "fbin:app"]