build: Use heredoc for Dockerfile commands (#1795)

This commit is contained in:
Kroese
2026-07-04 20:36:22 +02:00
committed by GitHub
parent 7a81862263
commit aacf70657a
+19 -13
View File
@@ -13,19 +13,25 @@ ARG DEBCONF_NOWARNINGS="yes"
ARG DEBIAN_FRONTEND="noninteractive" ARG DEBIAN_FRONTEND="noninteractive"
ARG DEBCONF_NONINTERACTIVE_SEEN="true" ARG DEBCONF_NONINTERACTIVE_SEEN="true"
RUN set -eu && \ RUN <<EOF
apt-get update && \ set -eu
apt-get --no-install-recommends -y install \
samba \ apt-get update
wimtools \ apt-get --no-install-recommends -y install \
dos2unix \ samba \
cabextract \ wimtools \
libxml2-utils \ dos2unix \
libarchive-tools && \ cabextract \
wget "https://github.com/gershnik/wsdd-native/releases/download/v${VERSION_WSDD}/wsddn_${VERSION_WSDD}_${TARGETARCH}.deb" -O /tmp/wsddn.deb -q --timeout=10 && \ libxml2-utils \
dpkg -i /tmp/wsddn.deb && \ libarchive-tools
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # Install wsdd
wget "https://github.com/gershnik/wsdd-native/releases/download/v${VERSION_WSDD}/wsddn_${VERSION_WSDD}_${TARGETARCH}.deb" -O /tmp/wsddn.deb -q --timeout=10
dpkg -i /tmp/wsddn.deb
apt-get clean
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
EOF
COPY --chmod=755 ./src /run/ COPY --chmod=755 ./src /run/
COPY --chmod=755 ./assets /run/assets COPY --chmod=755 ./assets /run/assets