-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (32 loc) · 906 Bytes
/
Copy pathDockerfile
File metadata and controls
38 lines (32 loc) · 906 Bytes
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
# syntax=docker/dockerfile:1
FROM --platform=linux/arm64 python:3.11-slim-bullseye
# Unbuffered stdout/stderr, headless Qt
ENV PYTHONUNBUFFERED=1 \
QT_QPA_PLATFORM=offscreen \
QT_XCB_NATIVE_PAINTING=1
# Install only the minimal XCB libraries Qt needs (no libgl)
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libxcb1 \
libxcb-keysyms1 \
libxcb-image0 \
libxcb-render-util0 \
libxcb-icccm4 \
libxcb-xinerama0 \
libegl1-mesa \
libgles2-mesa \
libfontconfig1 \
libglib2.0-0 \
libxkbcommon0 \
libgl1-mesa-glx \
libdbus-1-3 \
fonts-noto-color-emoji \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Python deps
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# App code
COPY src .
# Run your entrypoint
CMD ["python", "render_app.py"]