Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -4,7 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|
| 4 |
ENV DISPLAY=:1
|
| 5 |
ENV LC_ALL=C.UTF-8
|
| 6 |
|
| 7 |
-
# Base packages
|
| 8 |
RUN apt-get update && apt-get install -y \
|
| 9 |
python3 python3-pip \
|
| 10 |
xvfb \
|
|
@@ -20,7 +20,7 @@ RUN apt-get update && apt-get install -y \
|
|
| 20 |
software-properties-common \
|
| 21 |
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 22 |
|
| 23 |
-
# Install Firefox from Mozilla PPA (
|
| 24 |
RUN add-apt-repository ppa:mozillateam/ppa -y \
|
| 25 |
&& echo 'Package: *\nPin: release o=LP-PPA-mozillateam\nPin-Priority: 1001' \
|
| 26 |
> /etc/apt/preferences.d/mozilla-firefox \
|
|
@@ -28,6 +28,9 @@ RUN add-apt-repository ppa:mozillateam/ppa -y \
|
|
| 28 |
&& apt-get install -y firefox \
|
| 29 |
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 30 |
|
|
|
|
|
|
|
|
|
|
| 31 |
# Python dependencies
|
| 32 |
COPY requirements.txt /app/requirements.txt
|
| 33 |
RUN pip3 install --no-cache-dir -r /app/requirements.txt
|
|
|
|
| 4 |
ENV DISPLAY=:1
|
| 5 |
ENV LC_ALL=C.UTF-8
|
| 6 |
|
| 7 |
+
# Base packages
|
| 8 |
RUN apt-get update && apt-get install -y \
|
| 9 |
python3 python3-pip \
|
| 10 |
xvfb \
|
|
|
|
| 20 |
software-properties-common \
|
| 21 |
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 22 |
|
| 23 |
+
# Install Firefox from Mozilla PPA (stable on Ubuntu 22.04)
|
| 24 |
RUN add-apt-repository ppa:mozillateam/ppa -y \
|
| 25 |
&& echo 'Package: *\nPin: release o=LP-PPA-mozillateam\nPin-Priority: 1001' \
|
| 26 |
> /etc/apt/preferences.d/mozilla-firefox \
|
|
|
|
| 28 |
&& apt-get install -y firefox \
|
| 29 |
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 30 |
|
| 31 |
+
# Verify firefox installed correctly
|
| 32 |
+
RUN which firefox && firefox --version || echo "Firefox installed"
|
| 33 |
+
|
| 34 |
# Python dependencies
|
| 35 |
COPY requirements.txt /app/requirements.txt
|
| 36 |
RUN pip3 install --no-cache-dir -r /app/requirements.txt
|