updated dockerfile to include pyinstaller

This commit is contained in:
udayakr 2019-02-10 16:40:57 +05:30 committed by GitHub
parent 37b77a6cdd
commit b648046eee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,14 +9,19 @@ RUN pip install docker-py feedparser nosexcover prometheus_client pycobertura py
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
ARG PYINSTALLER_VERSION=3.1.1
ARG PYSCHEMA_VERSION=0.6.5
ARG PYYAML_VERSION=3.12
RUN $PYTHON -m pip install pyinstaller==$PYINSTALLER_VERSION pyyaml==$PYYAML_VERSION schema==$PYSCHEMA_VERSION
#include pyinstaller #include pyinstaller
RUN pip install pyinstaller && \ # RUN pip install pyinstaller && \
useradd -m -s /bin/bash pyinstaller useradd -m -s /bin/bash pyinstaller
# Set the user to use when running a container # Set the user to use when running a container
USER pyinstaller #USER pyinstaller
# Container will by default run 'pyinstaller --help' # Container will by default run 'pyinstaller --help'
ENTRYPOINT [ "pyinstaller" ] # ENTRYPOINT [ "pyinstaller" ]
CMD [ "--help" ] # CMD [ "--help" ]
CMD ["gunicorn", "-w 4", "main:app"] CMD ["gunicorn", "-w 4", "main:app"]