katospiegel commited on
Commit
4f4fff8
·
1 Parent(s): 2e3dd1d

Fix: Python ^3.11 externally-managed-env

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -3
Dockerfile CHANGED
@@ -1,7 +1,12 @@
1
  From ubuntu:latest
2
 
3
- RUN apt update
4
- RUN apt install python3 python3-pip -y
 
 
 
 
 
5
 
6
  ##################################################
7
  # Ubuntu setup
@@ -29,7 +34,7 @@ RUN apt-get update && apt-get -y upgrade \
29
 
30
  RUN mkdir /app
31
  COPY . /digiwild
32
- RUN pip install -r /digiwild/requirements.txt
33
 
34
  WORKDIR /digiwild
35
 
 
1
  From ubuntu:latest
2
 
3
+ RUN apt-get update
4
+ RUN apt-get install python3 python3-pip -y
5
+
6
+ # https://stackoverflow.com/questions/75608323/how-do-i-solve-error-externally-managed-environment-every-time-i-use-pip-3
7
+ # https://veronneau.org/python-311-pip-and-breaking-system-packages.html
8
+ ENV PIP_BREAK_SYSTEM_PACKAGES 1
9
+
10
 
11
  ##################################################
12
  # Ubuntu setup
 
34
 
35
  RUN mkdir /app
36
  COPY . /digiwild
37
+ RUN pip3 install -r /digiwild/requirements.txt
38
 
39
  WORKDIR /digiwild
40