Skip to content

Commit

Permalink
intall with root
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisVQ committed Sep 4, 2024
1 parent a42184d commit f676d49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions be-python-flask/files/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ COPY run.sh /app/

WORKDIR /app

USER root

RUN yum -y update && \
yum clean all

USER 1001

RUN if [ ! -z ${nexusHostWithBasicAuth} ]; \
then pip install -i ${nexusHostWithBasicAuth}/repository/pypi-all/simple --trusted-host ${nexusHostWithoutScheme} --upgrade pip && pip install -i ${nexusHostWithBasicAuth}/repository/pypi-all/simple --trusted-host ${nexusHostWithoutScheme} -r requirements.txt; \
else pip install --upgrade pip && pip install -r requirements.txt; \
Expand Down

0 comments on commit f676d49

Please sign in to comment.