/etc/environment no longer works for PATH
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-02-24 18:40:04 +01:00
parent 0e7060e5f6
commit 7f372c9b12

View File

@@ -38,8 +38,8 @@ RUN wget -nv -O- https://dl.winehq.org/wine-builds/winehq.key | APT_KEY_DONT_WAR
&& dpkg --add-architecture i386 \
&& apt-get update \
&& DEBIAN_FRONTEND="noninteractive" apt-get install -y --install-recommends wine-${WINE_BRANCH} \
&& rm -rf /var/lib/apt/lists/* \
&& sed -i -E "s:PATH=\"?([^\"]*)\"?:PATH=/opt/wine-stable/bin\:\1:g" /etc/environment
&& rm -rf /var/lib/apt/lists/*
ENV PATH "/opt/wine-stable/bin:$PATH"
COPY entrypoint.sh /usr/bin/entrypoint
@@ -68,7 +68,6 @@ COPY tools/* /root/.wine/drive_c/windows/system32/
COPY VisualStudioMock/bin/Release/net472/VisualStudioMock.exe /root/.wine/drive_c/VisualStudioMock.exe
RUN set -x -e; \
export PATH=/opt/wine-stable/bin:$PATH; \
# Initialize wine
# HACK for Wine 10 bug where the wineboot --init ends with "run_wineboot boot event wait timed out" (https://bugs.mandrivalinux.com.narkive.com/hFZTjKnl/bug-58914-wine-new-wine-hangs-while-creating-initial-configuration-in-wine)
# DISPLAY= prevents access to the display and allows the init to complete