10000 Merge pull request #114 from IBM/pipenv-fix · neotycoder/python-flask-app@7ac21c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ac21c7

Browse files
authored
Merge pull request IBM#114 from IBM/pipenv-fix
fix: local build error
2 parents 5494d41 + d9c3dc8 commit 7ac21c7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ COPY Pipfile* /opt/app-root/src/
77
## NOTE - rhel enforces user container permissions stronger ##
88
USER root
99

10-
RUN python3 -m pip install --upgrade pip \
11-
&& python3 -m pip install --upgrade pipenv \
10+
RUN pip3 install --upgrade pip==21.3.1 \
11+
&& pip3 install --upgrade pipenv==2020.11.15 \
1212
&& pipenv install --deploy
1313

1414
RUN pipenv lock -r > requirements.txt && pip3 install -r requirements.txt

Dockerfile-tools

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ USER root
99
RUN yum -y install --disableplugin=subscription-manager wget \
1010
&& yum --disableplugin=subscription-manager clean all
1111

12-
RUN pip3 install pipenv
13-
RUN pipenv install --dev
12+
RUN pip3 install --upgrade pip==21.3.1 \
13+
&& pip3 install --upgrade pipenv==2020.11.15 \
14+
&& pipenv install --dev
1415

1516
# Update python command to point to python3 install
1617
RUN alternatives --set python /usr/bin/python3

0 commit comments

Comments
 (0)
0