reverse last push :D

This commit is contained in:
2025-11-15 20:41:55 +01:00
parent af0f3ccaec
commit 3286b3785f
4 changed files with 70 additions and 84 deletions

View File

@@ -1,43 +1,42 @@
# Electron Linux build image (Node 20) on Debian slim
FROM debian:bookworm-slim FROM debian:bookworm-slim
LABEL org.opencontainers.image.title="electron-builder-linux (Node 18)"
LABEL org.opencontainers.image.description="Container for building Linux Electron apps (AppImage, deb, rpm) using electron-builder (Node 18)"
LABEL maintainer="me@johanneskr.de"
ENV DEBIAN_FRONTEND=noninteractive \ ENV DEBIAN_FRONTEND=noninteractive
NPM_CONFIG_LOGLEVEL=warn
# 1) Basis & Node 20 via NodeSource RUN dpkg --add-architecture i386 \
RUN apt-get update && apt-get install -y --no-install-recommends \ && apt-get update \
ca-certificates curl gnupg2 dirmngr \ && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* ca-certificates curl gnupg \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ && NODE_MAJOR=18 \
&& apt-get update && apt-get install -y --no-install-recommends nodejs \ && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
&& corepack enable \ && apt-get update \
&& rm -rf /var/lib/apt/lists/* && apt-get install -y nodejs \
# Wine & Mono
# 2) Build- & Packaging-Deps (für electron-builder Linux Targets) && apt-get install -y --no-install-recommends \
# - AppImage benötigt FUSE -> libfuse2 wine wine32 wine64 mono-complete winbind cabextract \
# - deb: dpkg, fakeroot # AWS CLI
# - rpm: rpm awscli \
# - native modules: build-essential, python3, pkg-config, libudev-dev, libusb-1.0-0-dev, libsecret-1-dev # Other build essentials
# - optional runtime libs für Tests/Headless-Runs build-essential python3 git file xz-utils zip p7zip-full fakeroot \
RUN apt-get update && apt-get install -y --no-install-recommends \ dpkg rpm libarchive-tools \
build-essential python3 git file xz-utils zip p7zip-full fakeroot \ libfuse2 \
dpkg rpm libarchive-tools \ pkg-config libudev-dev libusb-1.0-0-dev libsecret-1-dev \
libfuse2 \ xvfb fontconfig \
pkg-config libudev-dev libusb-1.0-0-dev libsecret-1-dev \ libx11-xcb1 libxss1 libasound2 libnss3 libgtk-3-0 libatk-bridge2.0-0 libgbm1 libxkbcommon0 libdrm2 \
xvfb fontconfig \ make gcc g++ build-essential clang libdbus-1-dev libgtk-3-dev \
libx11-xcb1 libxss1 libasound2 libnss3 libgtk-3-0 libatk-bridge2.0-0 libgbm1 libxkbcommon0 libdrm2 \ libnotify-dev libasound2-dev libcap-dev libcups2-dev libxtst-dev \
make gcc g++ build-essential clang libdbus-1-dev libgtk-3-dev \ libxss1 libnss3-dev gcc-multilib g++-multilib curl gperf bison python3-dbusmock \
libnotify-dev libasound2-dev libcap-dev libcups2-dev libxtst-dev \ && apt-get clean \
libxss1 libnss3-dev gcc-multilib g++-multilib curl gperf bison python3-dbusmock \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# (Optional) Sanity-Check # Set up a working directory
RUN node -v && npm -v && npx --yes electron-builder --version || true WORKDIR /project
WORKDIR /workspace # (Optional) Install electron-builder globally in the image
CMD ["bash"] # This can sometimes help with pathing issues, but isn't strictly necessary
# if it's in the project's devDependencies.
RUN npm install -g electron-builder
# Set the entrypoint to bash
ENTRYPOINT ["/bin/bash"]

View File

@@ -1,43 +1,42 @@
# Electron Linux build image (Node 20) on Debian slim
FROM debian:bookworm-slim FROM debian:bookworm-slim
LABEL org.opencontainers.image.title="electron-builder-linux (Node 20)"
LABEL org.opencontainers.image.description="Container for building Linux Electron apps (AppImage, deb, rpm) using electron-builder (Node 20)"
LABEL maintainer="me@johanneskr.de"
ENV DEBIAN_FRONTEND=noninteractive \ ENV DEBIAN_FRONTEND=noninteractive
NPM_CONFIG_LOGLEVEL=warn
# 1) Basis & Node 20 via NodeSource RUN dpkg --add-architecture i386 \
RUN apt-get update && apt-get install -y --no-install-recommends \ && apt-get update \
ca-certificates curl gnupg2 dirmngr \ && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* ca-certificates curl gnupg \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ && NODE_MAJOR=20 \
&& apt-get update && apt-get install -y --no-install-recommends nodejs \ && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
&& corepack enable \ && apt-get update \
&& rm -rf /var/lib/apt/lists/* && apt-get install -y nodejs \
# Wine & Mono
# 2) Build- & Packaging-Deps (für electron-builder Linux Targets) && apt-get install -y --no-install-recommends \
# - AppImage benötigt FUSE -> libfuse2 wine wine32 wine64 mono-complete winbind cabextract \
# - deb: dpkg, fakeroot # AWS CLI
# - rpm: rpm awscli \
# - native modules: build-essential, python3, pkg-config, libudev-dev, libusb-1.0-0-dev, libsecret-1-dev # Other build essentials
# - optional runtime libs für Tests/Headless-Runs build-essential python3 git file xz-utils zip p7zip-full fakeroot \
RUN apt-get update && apt-get install -y --no-install-recommends \ dpkg rpm libarchive-tools \
build-essential python3 git file xz-utils zip p7zip-full fakeroot \ libfuse2 \
dpkg rpm libarchive-tools \ pkg-config libudev-dev libusb-1.0-0-dev libsecret-1-dev \
libfuse2 \ xvfb fontconfig \
pkg-config libudev-dev libusb-1.0-0-dev libsecret-1-dev \ libx11-xcb1 libxss1 libasound2 libnss3 libgtk-3-0 libatk-bridge2.0-0 libgbm1 libxkbcommon0 libdrm2 \
xvfb fontconfig \ make gcc g++ build-essential clang libdbus-1-dev libgtk-3-dev \
libx11-xcb1 libxss1 libasound2 libnss3 libgtk-3-0 libatk-bridge2.0-0 libgbm1 libxkbcommon0 libdrm2 \ libnotify-dev libasound2-dev libcap-dev libcups2-dev libxtst-dev \
make gcc g++ build-essential clang libdbus-1-dev libgtk-3-dev \ libxss1 libnss3-dev gcc-multilib g++-multilib curl gperf bison python3-dbusmock \
libnotify-dev libasound2-dev libcap-dev libcups2-dev libxtst-dev \ && apt-get clean \
libxss1 libnss3-dev gcc-multilib g++-multilib curl gperf bison python3-dbusmock \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# (Optional) Sanity-Check # Set up a working directory
RUN node -v && npm -v && npx --yes electron-builder --version || true WORKDIR /project
WORKDIR /workspace # (Optional) Install electron-builder globally in the image
CMD ["bash"] # This can sometimes help with pathing issues, but isn't strictly necessary
# if it's in the project's devDependencies.
RUN npm install -g electron-builder
# Set the entrypoint to bash
ENTRYPOINT ["/bin/bash"]

View File

@@ -18,12 +18,6 @@ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& corepack enable \ && corepack enable \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# 2) Build- & Packaging-Deps (für electron-builder Linux Targets)
# - AppImage benötigt FUSE -> libfuse2
# - deb: dpkg, fakeroot
# - rpm: rpm
# - native modules: build-essential, python3, pkg-config, libudev-dev, libusb-1.0-0-dev, libsecret-1-dev
# - optional runtime libs für Tests/Headless-Runs
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential python3 git file xz-utils zip p7zip-full fakeroot \ build-essential python3 git file xz-utils zip p7zip-full fakeroot \
dpkg rpm libarchive-tools \ dpkg rpm libarchive-tools \

View File

@@ -18,12 +18,6 @@ RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
&& corepack enable \ && corepack enable \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# 2) Build- & Packaging-Deps (für electron-builder Linux Targets)
# - AppImage benötigt FUSE -> libfuse2
# - deb: dpkg, fakeroot
# - rpm: rpm
# - native modules: build-essential, python3, pkg-config, libudev-dev, libusb-1.0-0-dev, libsecret-1-dev
# - optional runtime libs für Tests/Headless-Runs
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential python3 git file xz-utils zip p7zip-full fakeroot \ build-essential python3 git file xz-utils zip p7zip-full fakeroot \
dpkg rpm libarchive-tools \ dpkg rpm libarchive-tools \