From 752e0fdd8c3cdd7c65acf27bb06a6b2cae47cb3c Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 24 Jul 2019 11:58:57 +0200 Subject: Add Docker config --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b8d2f07 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,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"] -- cgit v1.2.3