Skip to content

Commit

Permalink
User root in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ccomrade committed Feb 25, 2024
1 parent 71abb5e commit ad784e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ad784e5

Please sign in to comment.