-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathwindowsSetupCompiler.dockerfile
45 lines (32 loc) · 1.27 KB
/
windowsSetupCompiler.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
FROM amake/wine:latest
MAINTAINER Aaron Madlon-Kay <[email protected]>
USER root
RUN apt-get update \
&& apt-get install -y --no-install-recommends procps xvfb sudo \
&& rm -rf /var/lib/apt/lists/*
# get at least error information from wine
ENV WINEDEBUG -all,err+all
# Run virtual X buffer on this port
ENV DISPLAY :99
COPY opt /opt
RUN chmod +x /opt/bin/*
ENV PATH $PATH:/opt/bin
USER xclient
# Install Inno Setup binaries
RUN curl -SL "http://files.jrsoftware.org/is/5/innosetup-5.6.1-unicode.exe" -o is.exe \
&& wine-x11-run wine is.exe /SP- /VERYSILENT \
&& rm is.exe
# Install unofficial languages
RUN cd "/home/xclient/.wine/drive_c/Program Files/Inno Setup 5/Languages" \
&& curl -L "https://api.github.com/repos/jrsoftware/issrc/tarball/29b1e8e8ebe7cf96ca854a1d6be2ae7af7f8018d" \
| tar xz --strip-components=4 --wildcards "*/Files/Languages/Unofficial/*.isl"
USER root
RUN find /home -type d -print0 | xargs -0 -- chmod 777 \
&& find /home -type f -print0 | xargs -0 -- chmod 666 \
&& chmod 666 /etc/passwd /etc/shadow /etc/group \
&& echo "ALL ALL=(ALL) NOPASSWD: ALL" >/etc/sudoers
USER xclient
WORKDIR /work
ENTRYPOINT []
# http://files.jrsoftware.org/is/5/innosetup-5.6.1-unicode.exe
# http://files.jrsoftware.org/is/6/innosetup-6.0.4.exe