modified dockerfile

This commit is contained in:
udayakr 2019-02-10 16:21:04 +05:30 committed by GitHub
parent 4926c32c2c
commit 02022c5be5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,16 @@ FROM python:3.6
COPY . /app COPY . /app
WORKDIR /app WORKDIR /app
RUN pip install -r requirements.txt 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 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 \ 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 && 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"] CMD ["gunicorn", "-w 4", "main:app"]