-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
56 lines (56 loc) · 2.36 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
FROM ubuntu:18.10
# 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 \
# Install wine
&& wget -nc https://dl.winehq.org/wine-builds/winehq.key \
&& apt-key add winehq.key \
&& apt-get update \
&& apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main' \
&& apt-get install -y --install-recommends winehq-stable \
# Download wine cache files
&& mkdir -p /home/wine/.cache/wine \
# && wget https://dl.winehq.org/wine/wine-mono/4.6.4/wine-mono-4.6.4.msi \
# -O /home/wine/.cache/wine/wine-mono-4.6.4.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://raw.githubusercontent.com/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
# install dotnet 461
#RUN winetricks -q dotnet461
# install flowgorithm
RUN wget http://www.flowgorithm.org/download/files/Flowgorithm-2.21.1-64-Setup.zip && unzip Flowgorithm-2.21.1-64-Setup.zip && mv setup.exe /home/wine/. && mv "Flowgorithm Setup.msi" /home/wine/ && echo done #&& wine setup.exe
#ENV DISPLAY :0
VOLUME /home/wine
COPY entrypoint.sh /usr/bin/entrypoint
ENTRYPOINT ["/usr/bin/entrypoint"]
#CMD ["wine", "Flowgorith.exe"]