-
-
Notifications
You must be signed in to change notification settings - Fork 424
Expand file tree
/
Copy pathDockerfile.base
More file actions
41 lines (38 loc) · 1.03 KB
/
Dockerfile.base
File metadata and controls
41 lines (38 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM ghcr.io/astral-sh/uv:python3.10-bookworm-slim AS base
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
UV_COMPILE_BYTECODE=1 \
UV_LINK_MODE=copy \
QTWEBENGINE_DISABLE_SANDBOX=1 \
QT_QPA_PLATFORM=offscreen \
QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox --disable-gpu --disable-software-rasterizer"
# System dependencies
RUN apt-get update -yq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
wget \
ca-certificates \
tar \
xz-utils \
make \
cmake \
g++ \
libasound2 \
libffi-dev \
libegl1 \
libopengl0 \
libxcb-cursor0 \
libnss3 \
libgl1-mesa-glx \
libxcomposite1 \
libxrandr2 \
libxi6 \
fontconfig \
libxkbcommon-x11-0 \
libxtst6 \
libxkbfile1 \
libxcomposite-dev \
libxdamage-dev \
&& rm -rf /var/lib/apt/lists/*
# Install calibre
RUN wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin \
&& ln -s /opt/calibre/ebook-convert /usr/local/bin/ebook-convert