From 2d6eef2ff634d22a8cf4487fd4ee1e6ded77f019 Mon Sep 17 00:00:00 2001 From: gOOvER <116325+gOOvER@users.noreply.github.com> Date: Sun, 22 Oct 2023 18:22:46 +0200 Subject: [PATCH] update wine images in preparation for astro colony --- wine/devel/Dockerfile | 10 ++++++++-- wine/stable/Dockerfile | 10 ++++++++-- wine/staging/Dockerfile | 11 +++++++++-- 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/wine/devel/Dockerfile b/wine/devel/Dockerfile index 2fcb531..384f499 100644 --- a/wine/devel/Dockerfile +++ b/wine/devel/Dockerfile @@ -38,6 +38,7 @@ RUN apt install -y --no-install-recommends \ speex:i386 \ tar \ telnet \ + tini \ tzdata \ wget \ winbind \ @@ -113,5 +114,10 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container -COPY ./../entrypoint.sh /entrypoint.sh -CMD [ "/bin/bash", "/entrypoint.sh" ] \ No newline at end of file +# Sets the default stop signal as wings can (currently) only send a kill or generic stop +STOPSIGNAL SIGINT + +COPY --chown=container:container ../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] \ No newline at end of file diff --git a/wine/stable/Dockerfile b/wine/stable/Dockerfile index 2873d63..b386aef 100644 --- a/wine/stable/Dockerfile +++ b/wine/stable/Dockerfile @@ -38,6 +38,7 @@ RUN apt install -y \ speex:i386 \ tar \ telnet \ + tini \ tzdata \ wget \ winbind \ @@ -116,5 +117,10 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container -COPY ./../entrypoint.sh /entrypoint.sh -CMD [ "/bin/bash", "/entrypoint.sh" ] +# Sets the default stop signal as wings can (currently) only send a kill or generic stop +STOPSIGNAL SIGINT + +COPY --chown=container:container ../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] \ No newline at end of file diff --git a/wine/staging/Dockerfile b/wine/staging/Dockerfile index c63a0e1..b6897c9 100644 --- a/wine/staging/Dockerfile +++ b/wine/staging/Dockerfile @@ -38,6 +38,7 @@ RUN apt install -y --no-install-recommends \ speex:i386 \ tar \ telnet \ + tini \ tzdata \ wget \ winbind \ @@ -100,6 +101,7 @@ RUN apt install --install-recommends winehq-staging cabextract fonts RUN wget -q -O /usr/sbin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks RUN chmod +x /usr/sbin/winetricks +# Setup ENVs ENV HOME=/home/container ENV WINEPREFIX=/home/container/.wine ENV WINEDLLOVERRIDES="mscoree,mshtml=" @@ -114,5 +116,10 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container -COPY ./../entrypoint.sh /entrypoint.sh -CMD [ "/bin/bash", "/entrypoint.sh" ] \ No newline at end of file +# Sets the default stop signal as wings can (currently) only send a kill or generic stop +STOPSIGNAL SIGINT + +COPY --chown=container:container ../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] \ No newline at end of file