From 02022c5be5d5e88b8f7a4ac133d06eba34173534 Mon Sep 17 00:00:00 2001 From: udayakr <37626471+udayakr@users.noreply.github.com> Date: Sun, 10 Feb 2019 16:21:04 +0530 Subject: [PATCH] modified dockerfile --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Dockerfile b/Dockerfile index b009688..b85a464 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,16 @@ FROM python:3.6 COPY . /app WORKDIR /app RUN pip install -r requirements.txt + +# include pylint and pytest RUN pip install docker-py feedparser nosexcover prometheus_client pycobertura pylint pytest pytest-cov requests setuptools sphinx RUN wget -qO /usr/local/bin/qcoverage https://github.com/qnib/qcoverage/releases/download/v0.1/qcoverage_v0.1_Linux \ && chmod +x /usr/local/bin/qcoverage + +#include pyinstaller +RUN pip install pyinstaller && \ + useradd -m -s /bin/bash pyinstaller +# Set the user to use when running a container +USER pyinstaller + CMD ["gunicorn", "-w 4", "main:app"]