From 7b963f8cf37339e8ebfe704278c9eacb111d4246 Mon Sep 17 00:00:00 2001 From: BlackLight Date: Thu, 13 Dec 2018 04:35:02 +0100 Subject: [PATCH] Added Dockerfile --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..79e69b94f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM python:alpine3.7 + +RUN mkdir /app +COPY . /app +WORKDIR /app +RUN apk add --update --no-cache --virtual build-base \ + && apk add --update --no-cache libffi-dev \ + && apk add --update --no-cache zlib-dev \ + && apk add --update --no-cache libjpeg-turbo-dev \ + && pip install -r requirements.txt \ + && apk del build-base \ + && apk del libffi-dev \ + && apk del libjpeg-turbo-dev \ + && apk del zlib-dev + +RUN cd /app && python setup.py build install +CMD python -m platypush +