apexherbert200 commited on
Commit
23a3391
·
1 Parent(s): 41e802f

Fix PEP 668 externally-managed-environment error

Browse files

- Add --break-system-packages flag to pip install
- This resolves the Alpine Linux PEP 668 restriction
- Allows installation of Python packages in Docker container

Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -10,7 +10,7 @@ RUN apk add --no-cache python3 py3-pip
10
 
11
  # Copy requirements first for better caching
12
  COPY requirements.txt .
13
- RUN python3 -m pip install --no-cache-dir -r requirements.txt
14
 
15
  # Copy your code
16
  COPY . .
 
10
 
11
  # Copy requirements first for better caching
12
  COPY requirements.txt .
13
+ RUN python3 -m pip install --no-cache-dir --break-system-packages -r requirements.txt
14
 
15
  # Copy your code
16
  COPY . .