forked from GameServerManagers/LinuxGSM-Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
109 lines (94 loc) · 2.05 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
99
100
101
102
103
104
105
106
107
108
109
#
# LinuxGSM Dockerfile
#
# https://github.com/GameServerManagers/LinuxGSM-Docker
#
FROM ubuntu:18.04
LABEL maintainer="LinuxGSM <[email protected]>"
ENV DEBIAN_FRONTEND noninteractive
RUN set -ex; \
apt-get update; \
apt-get install -y locales; \
rm -rf /var/lib/apt/lists/*; \
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
## Base System
RUN set -ex; \
dpkg --add-architecture i386; \
apt update -y; \
apt install -y \
vim \
apt-transport-https \
bc \
binutils \
bsdmainutils \
bzip2 \
ca-certificates \
curl \
default-jre \
expect \
file \
gzip \
iproute2 \
jq \
lib32gcc1 \
lib32stdc++6 \
lib32tinfo5 \
lib32z1 \
libcurl4-gnutls-dev:i386 \
libdbus-glib-1-2:i386 \
libglu1-mesa:i386 \
libldap-2.4-2:i386 \
libncurses5:i386 \
libnm-glib-dev:i386 \
libnm-glib4:i386 \
libopenal1:i386 \
libpulse0:i386 \
libsdl1.2debian \
libsdl2-2.0-0:i386 \
libssl1.0.0:i386 \
libstdc++5:i386 \
libstdc++6 \
libstdc++6:i386 \
libtbb2 \
libtcmalloc-minimal4:i386 \
libusb-1.0-0:i386 \
libxrandr2:i386 \
libxtst6:i386 \
mailutils \
netcat \
postfix \
python \
speex:i386 \
telnet \
tmux \
unzip \
util-linux \
wget \
xz-utils \
zlib1g \
zlib1g:i386; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*
## linuxgsm.sh
RUN set -ex; \
wget https://linuxgsm.com/dl/linuxgsm.sh
## user config
RUN set -ex; \
groupadd -g 750 -o linuxgsm; \
adduser --uid 750 --disabled-password --gecos "" --ingroup linuxgsm linuxgsm; \
chown linuxgsm:linuxgsm /linuxgsm.sh; \
chmod +x /linuxgsm.sh; \
cp /linuxgsm.sh /home/linuxgsm/linuxgsm.sh; \
usermod -G tty linuxgsm; \
chown -R linuxgsm:linuxgsm /home/linuxgsm/; \
chmod 755 /home/linuxgsm
USER linuxgsm
WORKDIR /home/linuxgsm
VOLUME [ "/home/linuxgsm" ]
# need use xterm for LinuxGSM
ENV TERM=xterm
## Docker Details
ENV PATH=$PATH:/home/linuxgsm
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["bash","/entrypoint.sh" ]