Dockerfile: WIP

This commit is contained in:
2025-09-16 08:06:45 +02:00
parent 07b032719d
commit 839b1c755d
3 changed files with 32 additions and 31 deletions
-4
View File
@@ -1,4 +0,0 @@
build*
cmake-build*
node_modules
frontend/node_modules
+17 -20
View File
@@ -30,23 +30,23 @@ RUN dnf -y update && \
xcb-util-keysyms-devel \
xcb-util-renderutil-devel \
libxkbcommon-devel \
libX11-devel \
libXext-devel \
libXrender-devel \
libXi-devel \
libXrandr-devel \
libXcursor-devel \
libXfixes-devel \
libXinerama-devel \
mesa-libGL-devel \
mesa-libEGL-devel \
dbus-devel \
zlib-devel \
glib2-devel \
fontconfig-devel \
openssl-static \
zlib-static \
freetype-devel && \
libX11-devel \
libXext-devel \
libXrender-devel \
libXi-devel \
libXrandr-devel \
libXcursor-devel \
libXfixes-devel \
libXinerama-devel \
mesa-libGL-devel \
mesa-libEGL-devel \
dbus-devel \
zlib-devel \
glib2-devel \
fontconfig-devel \
openssl-static \
zlib-static \
freetype-devel && \
dnf clean all && rm -rf /var/cache/dnf
# Install a recent Node.js (NodeSource). Change NODE_MAJOR if you want another major version.
@@ -95,8 +95,5 @@ ENV CMAKE_PREFIX_PATH=/opt/qt-${QT_VERSION}-static:/opt/eigen-3.4
# Set workdir for your project
WORKDIR /workspace
# Copy your project (expects a top-level CMakeLists.txt)
COPY . /workspace
# Default entrypoint prints tool versions and hints.
CMD ["/bin/bash", "-l"]
+15 -7
View File
@@ -24,14 +24,11 @@ RUN dnf -y update && \
rpm-build \
rpmdevtools \
numactl-devel \
openssl-devel \
redhat-rpm-config \
ninja-build \
# Qt build prerequisites
python3 \
perl \
pkgconf-pkg-config \
# GUI/Widgets/Charts/DBus deps
libxcb-devel \
xcb-util-wm-devel \
xcb-util-image-devel \
@@ -51,12 +48,26 @@ RUN dnf -y update && \
dbus-devel \
zlib-devel \
glib2-devel \
openssl-static \
zlib-static \
fontconfig-devel \
freetype-devel && \
dnf clean all && rm -rf /var/cache/dnf
ARG OPENSSL_VERSION=3.3.2
RUN set -eux; \
cd /tmp; \
curl -LO https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz; \
tar -xf openssl-${OPENSSL_VERSION}.tar.gz; \
cd openssl-${OPENSSL_VERSION}; \
./Configure linux-x86_64 no-shared no-module no-tests --prefix=/opt/openssl-${OPENSSL_VERSION} --libdir=lib; \
make -j"$(nproc)"; \
make install_sw; \
cd /; rm -rf /tmp/openssl-${OPENSSL_VERSION} /tmp/openssl-${OPENSSL_VERSION}.tar.gz
# Expose static OpenSSL to CMake/pkg-config
ENV OPENSSL_ROOT_DIR=/opt/openssl-${OPENSSL_VERSION}
ENV PKG_CONFIG_PATH=${OPENSSL_ROOT_DIR}/lib/pkgconfig:${OPENSSL_ROOT_DIR}/lib64/pkgconfig:${PKG_CONFIG_PATH}
# Install a recent Node.js (NodeSource). Change NODE_MAJOR if you want another major version.
ARG NODE_MAJOR=22
RUN curl -fsSL https://rpm.nodesource.com/setup_${NODE_MAJOR}.x | bash - && \
@@ -106,8 +117,5 @@ ENV CMAKE_PREFIX_PATH=/opt/qt-${QT_VERSION}-static:/opt/eigen-3.4
# Set workdir for your project
WORKDIR /workspace
# Copy your project (expects a top-level CMakeLists.txt)
COPY . /workspace
# Default entrypoint: interactive shell
CMD ["/bin/bash", "-l"]