8000 fix: local build error · neotycoder/python-flask-app@8bec175 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8bec175

Browse files
authored
fix: local build error
Fixes the following error: ``` FileNotFoundError: [Errno 2] No such file or directory: '/opt/app-root/lib64/python3.9/site-packages/pip/_vendor/certifi/cacert.pem' The command '/bin/sh -c pipenv install --dev' returned a non-zero code: 1 FAILED An error exit status 1 was encountered while building the Docker image. ```
1 parent 5494d41 commit 8bec175

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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 3C70 python3 install
1617
RUN alternatives --set python /usr/bin/python3

0 commit comments

Comments
 (0)
0