summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: a44db8e3d92c1e82f27f30beb4c2a280cfc884bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM python:3.8 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"]