-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
76 lines (57 loc) · 2.26 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
FROM centos:latest
RUN cd /etc/yum.repos.d/
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
RUN cd ~
ENV STEAMCMDDIR /home/csgo/steamcmd
RUN mkdir -p $STEAMCMDDIR
RUN yum upgrade -y \
yum update -y \
yum install -y wget unzip
RUN yum install -y passwd
RUN adduser csgo
RUN passwd csgo --stdin <<< 'admin'
RUN su csgo
WORKDIR /home/csgo
RUN wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
RUN tar xf steamcmd_linux.tar.gz -C $STEAMCMDDIR
WORKDIR $STEAMCMDDIR
RUN ls -l
RUN df --output=avail -B 1 "$PWD" |tail -n 1
RUN ./steamcmd.sh +login anonymous +force_install_dir ./csgo_ds +app_update 740 validate +quit
WORKDIR /home/csgo
RUN wget https://mms.alliedmods.net/mmsdrop/1.10/mmsource-1.10.7-git970-linux.tar.gz
RUN mkdir metamod
RUN tar xf mmsource-1.10.7-git970-linx.tar.gz -C ./metamod
RUN rsync -a ./metamod/ ./steamcmd/csgo_ds/addons/
RUN wget https://sm.alliedmods.net/smdrop/1.9/sourcemod-1.9.0-git6281-linux.tar.gz
RUN mkdir sourcemod
RUN tar xf sourcemod-1.9.0-git6281-linux.tar.gz -C ./sourcemod
RUN rsync -a ./sourcemod/ ./steamcmd/csgo_ds/
RUN wget https:/splewis/csgo-retakes/releases/download/v0.3.4/retakes_0.3.4.zip
RUN mkdir pug_plugin
RUN unzip pugsetup_2.0.5.zip -d ./pug_plugin
RUN rsync -a ./pug_plugin ./steamcmd/csgo_ds/
ENV FPSMAX 300 \
TICKRATE 128 \
PORT 27015 \
TV_PORT 27020 \
MAXPLAYERS 12 \
TOKEN 0 \
RCONPW "yolo" \
PW "" \
STARTMAP "de_train" \
REGION 0 \
MAPGROUP "mg_active" \
GAMETYPE 0 \
GAMEMODE 1 \
TOKEN ${TOKEN}
WORKDIR $STEAMAPPDIR
VOLUME $STEAMAPPDIR
ENTRYPOINT ${STEAMCMDDIR}/steamcmd.sh \
+login anonymous +force_install_dir ${STEAMAPPDIR} +app_update ${STEAMAPPID} +quit \
&& ${STEAMAPPDIR}/srcds_run \
-game csgo -console -autoupdate -steam_dir ${STEAMCMDDIR} -steamcmd_script ${STEAMAPPDIR}/csgo_update.txt -usercon +fps_max $FPSMAX \
-tickrate $TICKRATE -port $PORT -maxplayers_override $MAXPLAYERS +game_type $GAMETYPE +game_mode $GAMEMODE \
+mapgroup $MAPGROUP +map $STARTMAP +sv_setsteamaccount $TOKEN +rcon_password $RCONPW +sv_password $PW +sv_region $REGION
EXPOSE 27015 27020 27005 51840