-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
71 lines (62 loc) · 2.29 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
FROM ubuntu:16.04
LABEL description="Wine with .NET"
LABEL website=https://github.com/ProteoWizard/container/dotnet
LABEL documentation=https://github.com/ProteoWizard/container/dotnet
LABEL license=https://github.com/ProteoWizard/container/dotnet
LABEL tags="Wine,.NET"
ENV CONTAINER_GITHUB=https://github.com/ProteoWizard/container/dotnet
# 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 \
# Required for wine
winbind \
# Required for winetricks
cabextract \
p7zip \
unzip \
wget \
zenity \
xvfb && \
apt-get -y clean && \
rm -rf \
/var/lib/apt/lists/* \
/usr/share/doc \
/usr/share/doc-base \
/usr/share/man \
/usr/share/locale \
/usr/share/zoneinfo
ENV WINEDISTRO=devel
ENV WINEVERSION=3.12.0~xenial
# Install wine
RUN wget -nc https://dl.winehq.org/wine-builds/Release.key \
&& apt-key add Release.key \
&& apt-get update \
&& apt-get install -y apt-transport-https \
&& add-apt-repository https://dl.winehq.org/wine-builds/ubuntu/ \
&& apt-get update \
&& apt-get install -y --allow-unauthenticated --install-recommends winehq-$WINEDISTRO=$WINEVERSION wine-$WINEDISTRO=$WINEVERSION wine-$WINEDISTRO-i386=$WINEVERSION wine-$WINEDISTRO-amd64=$WINEVERSION && \
apt-get -y clean && \
rm -rf \
/var/lib/apt/lists/* \
/usr/share/doc \
/usr/share/doc-base \
/usr/share/man \
/usr/share/locale \
/usr/share/zoneinfo \
&& \
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \
-O /usr/local/bin/winetricks && chmod +x /usr/local/bin/winetricks
# put C:\pwiz on the Windows search path
#ENV WINEARCH win64
ENV WINEDEBUG -all,err+all
# To be singularity friendly, avoid installing anything to /root
RUN mkdir -p /wineprefix64/
ENV WINEPREFIX /wineprefix64
WORKDIR /wineprefix64
# Install Windows dependencies
#ADD winetricks_cache /root/.cache/winetricks
RUN winetricks -q dotnet40 && wineserver -w && winetricks -q win7 && xvfb-run winetricks -q vcrun2008 vcrun2013 corefonts && wineserver -w && rm -fr /root/.cache/winetricks