Spaces:
Sleeping
Sleeping
rsm-roguchi commited on
Commit ·
1109eb6
1
Parent(s): 60c1d6e
another docker change
Browse files- Dockerfile +7 -8
Dockerfile
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
-
# Playwright + Python (Noble)
|
| 2 |
FROM mcr.microsoft.com/playwright/python:v1.53.0-noble
|
| 3 |
|
| 4 |
-
#
|
| 5 |
-
|
|
|
|
|
|
|
| 6 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 7 |
build-essential \
|
| 8 |
python3-dev \
|
|
@@ -13,15 +15,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 13 |
|
| 14 |
WORKDIR /app
|
| 15 |
|
| 16 |
-
# Python deps
|
| 17 |
COPY requirements.txt .
|
| 18 |
|
| 19 |
-
#
|
| 20 |
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
|
| 21 |
|
| 22 |
-
# Do NOT run `playwright install-deps` in this image.
|
| 23 |
-
# (Browsers + deps are already inside the base image.)
|
| 24 |
-
|
| 25 |
# App
|
| 26 |
COPY . .
|
| 27 |
|
|
|
|
| 1 |
+
# Playwright + Python (Noble)
|
| 2 |
FROM mcr.microsoft.com/playwright/python:v1.53.0-noble
|
| 3 |
|
| 4 |
+
# 1. FIXED: Set this variable to allow global pip installs in Ubuntu 24.04
|
| 5 |
+
ENV PIP_BREAK_SYSTEM_PACKAGES=1
|
| 6 |
+
|
| 7 |
+
# 2. System dependencies (kept from previous fix for SHAP)
|
| 8 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
build-essential \
|
| 10 |
python3-dev \
|
|
|
|
| 15 |
|
| 16 |
WORKDIR /app
|
| 17 |
|
| 18 |
+
# 3. Python deps
|
| 19 |
COPY requirements.txt .
|
| 20 |
|
| 21 |
+
# Upgrade pip and install requirements (now allowed due to the ENV variable above)
|
| 22 |
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
|
| 23 |
|
|
|
|
|
|
|
|
|
|
| 24 |
# App
|
| 25 |
COPY . .
|
| 26 |
|