Update Dockerfile
This commit is contained in:
+39
-31
@@ -10,37 +10,45 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
|
|||||||
PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
|
PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
|
||||||
|
|
||||||
# Install system dependencies required by scientific Python stack, Playwright, Streamlit, and WeasyPrint PDF
|
# Install system dependencies required by scientific Python stack, Playwright, Streamlit, and WeasyPrint PDF
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN set -euo pipefail; \
|
||||||
build-essential \
|
apt-get update; \
|
||||||
curl \
|
if apt-cache show libgdk-pixbuf-2.0-0 >/dev/null 2>&1; then \
|
||||||
git \
|
GDK_PIXBUF_PKG=libgdk-pixbuf-2.0-0; \
|
||||||
libgl1 \
|
else \
|
||||||
libglib2.0-0 \
|
GDK_PIXBUF_PKG=libgdk-pixbuf2.0-0; \
|
||||||
libgtk-3-0 \
|
fi; \
|
||||||
libpango-1.0-0 \
|
apt-get install -y --no-install-recommends \
|
||||||
libpangocairo-1.0-0 \
|
build-essential \
|
||||||
libpangoft2-1.0-0 \
|
curl \
|
||||||
libgdk-pixbuf2.0-0 \
|
git \
|
||||||
libffi-dev \
|
libgl1 \
|
||||||
libcairo2 \
|
libglib2.0-0 \
|
||||||
libatk1.0-0 \
|
libgtk-3-0 \
|
||||||
libatk-bridge2.0-0 \
|
libpango-1.0-0 \
|
||||||
libxcb1 \
|
libpangocairo-1.0-0 \
|
||||||
libxcomposite1 \
|
libpangoft2-1.0-0 \
|
||||||
libxdamage1 \
|
"${GDK_PIXBUF_PKG}" \
|
||||||
libxext6 \
|
libffi-dev \
|
||||||
libxfixes3 \
|
libcairo2 \
|
||||||
libxi6 \
|
libatk1.0-0 \
|
||||||
libxtst6 \
|
libatk-bridge2.0-0 \
|
||||||
libnss3 \
|
libxcb1 \
|
||||||
libxrandr2 \
|
libxcomposite1 \
|
||||||
libxkbcommon0 \
|
libxdamage1 \
|
||||||
libasound2 \
|
libxext6 \
|
||||||
libx11-xcb1 \
|
libxfixes3 \
|
||||||
libxshmfence1 \
|
libxi6 \
|
||||||
libgbm1 \
|
libxtst6 \
|
||||||
ffmpeg \
|
libnss3 \
|
||||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
libxrandr2 \
|
||||||
|
libxkbcommon0 \
|
||||||
|
libasound2 \
|
||||||
|
libx11-xcb1 \
|
||||||
|
libxshmfence1 \
|
||||||
|
libgbm1 \
|
||||||
|
ffmpeg; \
|
||||||
|
apt-get clean; \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install the latest uv release and expose it on PATH
|
# Install the latest uv release and expose it on PATH
|
||||||
RUN curl -LsSf --retry 3 --retry-delay 2 --proto '=https' --proto-redir '=https' --tlsv1.2 https://astral.sh/uv/install.sh | sh
|
RUN curl -LsSf --retry 3 --retry-delay 2 --proto '=https' --proto-redir '=https' --tlsv1.2 https://astral.sh/uv/install.sh | sh
|
||||||
|
|||||||
Reference in New Issue
Block a user