From ad784e57bb129b9719a18837f5be6dd79ae6cee6 Mon Sep 17 00:00:00 2001 From: ccomrade Date: Mon, 26 Feb 2024 00:56:03 +0100 Subject: [PATCH] User root in Dockerfile --- .github/workflows/build.yml | 2 +- Dockerfile | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9362b1e..019b671 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,7 +50,7 @@ jobs: runs-on: ubuntu-latest container: ghcr.io/${{ github.repository }}/wine-msvc-vs2005 env: - WINEPREFIX: /home/builder/.wine + WINEPREFIX: /root/.wine steps: - name: Checkout uses: actions/checkout@v4 diff --git a/Dockerfile b/Dockerfile index 23ae38b..26536d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,10 +9,7 @@ RUN dpkg --add-architecture i386 \ && apt-get install -y --no-install-recommends wine wine64 wine32:i386 winbind \ && apt-get clean -RUN adduser --disabled-password --gecos "" builder -USER builder - RUN wineboot --init && wineserver --wait -ADD --chown=builder:builder https://comrade.one/$TOOLCHAIN_TARBALL /tmp/ -RUN tar -xaf /tmp/$TOOLCHAIN_TARBALL -C /home/builder/.wine/drive_c/ && rm /tmp/$TOOLCHAIN_TARBALL +ADD https://comrade.one/$TOOLCHAIN_TARBALL / +RUN tar -xaf /$TOOLCHAIN_TARBALL -C /root/.wine/drive_c/ && rm /$TOOLCHAIN_TARBALL