forked from Gonzih/docker-csgo-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (28 loc) · 982 Bytes
/
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
FROM ubuntu:18.04
MAINTAINER Lasse Bjerre <lasse at lgb dot dk>
ENV USER csgo
ENV HOME /home/$USER
ENV SERVER $HOME/hlserver
RUN apt-get -y update \
&& apt-get -y install lib32gcc1 curl net-tools lib32stdc++6 \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& useradd $USER \
&& mkdir $HOME \
&& chown $USER:$USER $HOME \
&& mkdir $SERVER
ADD ./csgo_ds.txt $SERVER/csgo_ds.txt
ADD ./update.sh $SERVER/update.sh
ADD ./autoexec.cfg $SERVER/csgo/csgo/cfg/autoexec.cfg
ADD ./server.cfg $SERVER/csgo/csgo/cfg/server.cfg
ADD ./csgo.sh $SERVER/csgo.sh
RUN chown -R $USER:$USER $SERVER
USER $USER
RUN curl http://media.steampowered.com/client/steamcmd_linux.tar.gz | tar -C $SERVER -xvz \
&& $SERVER/update.sh
EXPOSE 27015/tcp
EXPOSE 27015/udp
EXPOSE 28015/tcp
EXPOSE 28015/udp
WORKDIR /home/$USER/hlserver
ENTRYPOINT ["./csgo.sh"]
CMD ["-console" "-usercon" "+game_type" "0" "+game_mode" "1" "+mapgroup" "mg_active" "+map" "de_cache"]