Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -3,7 +3,7 @@ FROM python:3.10-slim
|
|
| 3 |
# Set the DEBIAN_FRONTEND to noninteractive
|
| 4 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 5 |
|
| 6 |
-
# 1. Install
|
| 7 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 8 |
wget \
|
| 9 |
ca-certificates \
|
|
@@ -12,12 +12,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 12 |
libxrender1 \
|
| 13 |
xfonts-75dpi \
|
| 14 |
xfonts-base \
|
|
|
|
|
|
|
| 15 |
&& rm -rf /var/lib/apt/lists/*
|
| 16 |
|
| 17 |
-
# 2.
|
| 18 |
RUN mkdir -p /var/cache/fontconfig && chmod 777 /var/cache/fontconfig
|
| 19 |
|
| 20 |
-
# 3. Download and install the legacy dependencies.
|
| 21 |
RUN set -ex; \
|
| 22 |
wget http://archive.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.2-2+deb10u1_amd64.deb && \
|
| 23 |
wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1w-0+deb11u4_amd64.deb && \
|
|
|
|
| 3 |
# Set the DEBIAN_FRONTEND to noninteractive
|
| 4 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 5 |
|
| 6 |
+
# 1. Install all base dependencies, including those for xvfb.
|
| 7 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 8 |
wget \
|
| 9 |
ca-certificates \
|
|
|
|
| 12 |
libxrender1 \
|
| 13 |
xfonts-75dpi \
|
| 14 |
xfonts-base \
|
| 15 |
+
xvfb \
|
| 16 |
+
xauth \
|
| 17 |
&& rm -rf /var/lib/apt/lists/*
|
| 18 |
|
| 19 |
+
# 2. Create a writable font cache directory to prevent fontconfig warnings.
|
| 20 |
RUN mkdir -p /var/cache/fontconfig && chmod 777 /var/cache/fontconfig
|
| 21 |
|
| 22 |
+
# 3. Download and install the required legacy dependencies.
|
| 23 |
RUN set -ex; \
|
| 24 |
wget http://archive.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.2-2+deb10u1_amd64.deb && \
|
| 25 |
wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1w-0+deb11u4_amd64.deb && \
|