Skip to content

Commit 880277f

Browse files
authored
Merge pull request #138 from scottyhardy/refactor/software-properties-common
refactor: install wine without using software-properties-common
2 parents 52061d0 + 13332f7 commit 880277f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ RUN apt-get update \
99
ca-certificates \
1010
cabextract \
1111
git \
12+
gnupg \
1213
gosu \
1314
gpg-agent \
1415
locales \
@@ -26,11 +27,9 @@ RUN apt-get update \
2627

2728
# Install wine
2829
ARG WINE_BRANCH="stable"
29-
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends software-properties-common \
30-
&& wget -nv -O- https://dl.winehq.org/wine-builds/winehq.key | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - \
31-
&& apt-add-repository "deb https://dl.winehq.org/wine-builds/ubuntu/ $(grep VERSION_CODENAME= /etc/os-release | cut -d= -f2) main" \
30+
RUN wget -nv -O- https://dl.winehq.org/wine-builds/winehq.key | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add - \
31+
&& echo "deb https://dl.winehq.org/wine-builds/ubuntu/ $(grep VERSION_CODENAME= /etc/os-release | cut -d= -f2) main" >> /etc/apt/sources.list \
3232
&& dpkg --add-architecture i386 \
33-
&& apt-get remove -y software-properties-common systemd* \
3433
&& apt-get update \
3534
&& DEBIAN_FRONTEND="noninteractive" apt-get install -y --install-recommends winehq-${WINE_BRANCH} \
3635
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)