-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
71 lines (66 loc) · 1.95 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
FROM ubuntu:18.04
ENV TERM=xterm
LABEL maintainer="[email protected]"
RUN dpkg --add-architecture i386 && \
apt-get update -y && \
apt-get install -y \
binutils \
bc \
jq \
curl \
wget \
file \
bzip2 \
gzip \
bsdmainutils \
unzip \
python \
ca-certificates \
tmux \
lib32gcc1 \
libstdc++6 \
libstdc++6:i386 \
libstdc++5:i386 \
libsdl1.2debian \
default-jdk \
lib32tinfo5 \
speex:i386 \
libtbb2 \
libcurl4-gnutls-dev:i386 \
libtcmalloc-minimal4:i386 \
libncurses5:i386 \
zlib1g:i386 \
libldap-2.4-2:i386 \
libxrandr2:i386 \
libglu1-mesa:i386 \
libxtst6:i386 \
libusb-1.0-0-dev:i386 \
libxxf86vm1:i386 \
libopenal1:i386 \
libssl1.0.0:i386 \
libgtk2.0-0:i386 \
libdbus-glib-1-2:i386 \
libnm-glib-dev:i386 \
sudo \
nano
RUN adduser --disabled-password --gecos "" --quiet customuser
RUN usermod -aG sudo customuser
RUN mkdir /csgo
RUN chown customuser:customuser /csgo
RUN chown customuser:customuser /sbin
COPY --chown=customuser:customuser ip /sbin/
USER customuser
RUN chmod -R 755 /csgo
RUN wget https://linuxgsm.com/dl/linuxgsm.sh -P /csgo
WORKDIR /csgo/
RUN chown customuser:customuser linuxgsm.sh
RUN chmod +x linuxgsm.sh
RUN bash linuxgsm.sh csgoserver
RUN chown admin:admin csgoserver
RUN chmod +x csgoserver
RUN ./csgoserver auto-install
RUN bash csgoserver start
RUN bash csgoserver dt
EXPOSE 27015/udp
EXPOSE 27020/udp
EXPOSE 27005/tcp