Pārlūkot izejas kodu

circumvent global package installation error

subDesTagesMitExtraKaese 1 gadu atpakaļ
vecāks
revīzija
bcc0460616
3 mainītis faili ar 7 papildinājumiem un 4 dzēšanām
  1. 4 1
      .gitignore
  2. 1 1
      Dockerfile
  3. 2 2
      requirements.txt

+ 4 - 1
.gitignore

@@ -125,4 +125,7 @@ venv.bak/
 dmypy.json
 
 # Pyre type checker
-.pyre/
+.pyre/
+
+# Docker-compose
+docker-compose.yml

+ 1 - 1
Dockerfile

@@ -9,7 +9,7 @@ WORKDIR /app
 COPY requirements.txt .
 RUN apt-get update && \
   apt-get install -y --no-install-recommends python3 python3-pip python3-pandas && \
-  python3 -m pip install -r requirements.txt
+  python3 -m pip install -r requirements.txt --break-system-packages
 
 # Clean up
 RUN apt-get -q -y autoremove && \

+ 2 - 2
requirements.txt

@@ -1,2 +1,2 @@
-influxdb-client=1.38.0
-requests=2.31.0
+influxdb-client==1.38.0
+requests==2.31.0