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

WORKDIR /app
COPY requirements.txt .

RUN apt-get update && apt-get install -y --no-install-recommends \
	ffmpegthumbnailer \
	imagemagick \
	&& 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"]