-
-
Notifications
You must be signed in to change notification settings - Fork 127
/
Copy pathDockerfile
46 lines (40 loc) · 1.13 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
FROM ubuntu:18.04
# Global dependencies
RUN apt-get -q update \
&& apt-get -q install -y --no-install-recommends apt-utils \
&& apt-get -q install -y --no-install-recommends --allow-downgrades \
ca-certificates \
libasound2 \
libc6-dev \
libcap2 \
libgconf-2-4 \
libglu1 \
libgtk-3-0 \
libncurses5 \
libnss3 \
libxtst6 \
libxss1 \
cpio \
lsb-release \
xvfb \
xz-utils \
&& apt-get clean
# Toolbox
RUN apt-get -q update \
&& apt-get -q install -y --no-install-recommends --allow-downgrades \
atop \
curl \
git \
git-lfs \
wget \
&& git lfs install --system --skip-repo \
&& apt-get clean
# Disable default sound card, which removes ALSA warnings
ADD config/asound.conf /etc/
# Support forward compatibility for unity activation
RUN echo "576562626572264761624c65526f7578" > /etc/machine-id && mkdir -p /var/lib/dbus/ && ln -sf /etc/machine-id /var/lib/dbus/machine-id
# Used by Unity editor in "modules.json" and must not end with a slash.
ENV UNITY_PATH="/opt/unity"
# Fixes a Gradle crash while building for Android on Unity 2019 when there are accented characters in environment variables
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8