-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
98 lines (95 loc) · 2.43 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
FROM wtanaka/xenial-uid
ARG DOWNLOAD_URL=https://beta.unity3d.com/download/dad990bf2728/UnitySetup-2018.2.7f1
ARG SHA1=13c24c5268a1a97e1e212321dc47a8890f0934ca
RUN apt-get update -qq; \
apt-get install -qq -y \
ffmpeg \
gconf-service \
lib32gcc1 \
lib32stdc++6 \
libasound2 \
libc6 \
libc6-i386 \
libcairo2 \
libcap2 \
libcups2 \
libarchive13 \
libasound2 \
libdbus-1-3 \
libexpat1 \
libfontconfig1 \
libfreetype6 \
libgcc1 \
libgconf2-4 \
libgdk-pixbuf2.0-0 \
libgl1-mesa-glx \
libglib2.0-0 \
libglu1-mesa \
libgtk2.0-0 \
libgtk-3-0 \
libnspr4 \
libnss3 \
libpango1.0-0 \
libsoup2.4 \
libstdc++6 \
libx11-6 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxi6 \
libxrandr2 \
libxrender1 \
libxtst6 \
zlib1g \
debconf \
npm \
xdg-utils \
lsb-release \
libpq5 \
xvfb \
wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& wget -nv ${DOWNLOAD_URL} -O UnitySetup; \
# compare sha1 if given
chmod +x UnitySetup; \
if [ -n "${SHA1}" -a "${SHA1}" != "" ]; then \
echo "${SHA1} UnitySetup" | shasum -a 1 --check -; \
else \
echo "no sha1 given, skipping checksum"; \
fi && \
# install unity
yes | ./UnitySetup --verbose --unattended \
--components=Unity \
-l /opt/Unity && \
yes | ./UnitySetup --verbose --unattended \
--components=Android \
-l /opt/Unity && \
yes | ./UnitySetup --verbose --unattended \
--components=iOS \
-l /opt/Unity && \
yes | ./UnitySetup --verbose --unattended \
--components=Mac-Mono \
-l /opt/Unity && \
yes | ./UnitySetup --verbose --unattended \
--components=WebGL \
-l /opt/Unity && \
yes | ./UnitySetup --verbose --unattended \
--components=Windows-Mono \
-l /opt/Unity && \
yes | ./UnitySetup --verbose --unattended \
--components=Facebook-Games \
-l /opt/Unity && \
# remove setup
rm UnitySetup && \
rm -rf /tmp/* /var/tmp/* && \
# make a directory for the certificate Unity needs to run
mkdir -p $HOME/.local/share/unity3d/Certificates/
ADD CACerts.pem $HOME/.local/share/unity3d/Certificates/
ADD combined_entry.sh /
ADD write_license_file.sh /
ADD xvfb_build.sh /
ADD xvfb_runtests.sh /
ENTRYPOINT ["/combined_entry.sh"]