-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
49 lines (40 loc) · 1.91 KB
/
Dockerfile
File metadata and controls
49 lines (40 loc) · 1.91 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
42
43
44
45
46
47
48
49
FROM ubuntu:24.04
ARG VERSION=latest
# Runtime system deps only (X11, Mesa GL, virtual framebuffer)
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
xvfb x11-utils libxcb-cursor0 libxcb-xinerama0 libx11-6 libxrandr2 \
libgl1-mesa-dri libegl-mesa0 libgbm1 libglx-mesa0 \
libglut3.12 libcurl4t64 libopengl0 libgomp1 \
libxkbcommon0 libegl1 libglib2.0-0t64 libdbus-1-3 \
libxcb-icccm4 libxcb-keysyms1 libxcb-render-util0 \
libxcb-shape0 libxcb-xkb1 libxkbcommon-x11-0 \
libfontconfig1 libfreetype6 \
&& rm -rf /var/lib/apt/lists/*
# Copy and install the .deb (skip declared Qt package deps — libs are bundled)
COPY qtmesheditor.deb /tmp/qtmesheditor.deb
RUN dpkg --install --force-depends /tmp/qtmesheditor.deb \
&& rm /tmp/qtmesheditor.deb
# The .deb installs /usr/bin/qtmesheditor (launcher script that sets
# LD_LIBRARY_PATH, QT_QPA_PLATFORM, etc.) and /usr/bin/qtmesh (symlink).
# If the .deb predates the qtmesh symlink, create it here as a fallback.
RUN [ -e /usr/bin/qtmesh ] || ln -sf qtmesheditor /usr/bin/qtmesh
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
# Create non-root runtime user
RUN useradd --create-home --uid 10001 --shell /usr/sbin/nologin qtmesh \
&& mkdir -p /workspace \
&& chown -R qtmesh:qtmesh /workspace
LABEL org.opencontainers.image.source="https://github.com/fernandotonon/QtMeshEditor"
LABEL org.opencontainers.image.description="qtmesh CLI - 3D mesh conversion, optimization, and animation tools"
LABEL org.opencontainers.image.version="${VERSION}"
# Suppress Qt locale warning and Mesa EGL/DRI3 warnings
ENV LANG=C.UTF-8
ENV LIBGL_ALWAYS_SOFTWARE=1
ENV MESA_LOG_LEVEL=0
# Suppress first-run telemetry notice (QSettings is ephemeral in containers)
ENV QTMESH_NO_TELEMETRY_NOTICE=1
WORKDIR /workspace
USER qtmesh
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["--help"]