-
-
Notifications
You must be signed in to change notification settings - Fork 124
/
Dockerfile
76 lines (67 loc) · 2.15 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
ARG ubuntuImage="ubuntu:22.04"
FROM $ubuntuImage
# 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
# Set frontend to Noninteractive in Debian configuration.
# https://github.com/phusion/baseimage-docker/issues/58#issuecomment-47995343
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
# 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 \
libnotify4 \
libnss3 \
libxtst6 \
libxss1 \
cpio \
lsb-release \
xvfb \
xz-utils \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /usr/share/icons/* \
&& rm -rf /usr/lib/python3.10/__pycache__/*
# Toolbox
RUN apt-get -q update \
&& apt-get -q install -y --no-install-recommends --allow-downgrades \
atop \
curl \
git \
git-lfs \
jq \
openssh-client \
wget \
zip \
unzip \
&& git lfs install --system --skip-repo \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# libstdc++6 upgrade
RUN apt-get -q update \
&& apt-get install -y --no-install-recommends --allow-downgrades \
libstdc++6 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Fix "No useable version of libssl" for Ubuntu 22.04
# https://forum.unity.com/threads/workaround-for-libssl-issue-on-ubuntu-22-04.1271405/
RUN wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb \
&& dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb \
&& rm libssl1.1_1.1.1f-1ubuntu2_amd64.deb
# Disable default sound card, which removes ALSA warnings
RUN /bin/echo -e 'pcm.!default {\n\
type plug\n\
slave.pcm "null"\n\
}' > /etc/asound.conf
# 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"