-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
54 lines (42 loc) · 1.96 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
FROM cm2network/steamcmd
ARG metamod_version=1.20
ARG amxmod_version=1.8.2
ENV CSTRIKE "${HOMEDIR}/cstrike"
ENV PORT 27015
ENV MAP de_dust2
ENV MAXPLAYERS 16
ENV SV_LAN 0
RUN ./steamcmd.sh +login anonymous +force_install_dir ../cstrike +app_update 90 validate +quit || :
RUN ./steamcmd.sh +login anonymous +force_install_dir ../cstrike +app_update 70 validate +quit || :
RUN ./steamcmd.sh +login anonymous +force_install_dir ../cstrike +app_update 10 validate +quit || :
RUN ./steamcmd.sh +login anonymous +force_install_dir ../cstrike +app_update 90 validate +quit
WORKDIR ${CSTRIKE}
USER steam
ADD files/steam_appid.txt steam_appid.txt
# Add maps
COPY maps/maps/ cstrike/maps/
COPY maps/gfx/ cstrike/gfx/
COPY maps/overviews/ cstrike/overviews/
COPY maps/sound/ cstrike/sound/
COPY maps/sprites/ cstrike/sprites/
ADD files/mapcycle.txt cstrike/mapcycle.txt
# Add default config
ADD files/server.cfg cstrike/server.cfg
# Install metamod
RUN mkdir -p cstrike/addons/metamod/dlls
RUN curl -sqL "http://prdownloads.sourceforge.net/metamod/metamod-$metamod_version-linux.tar.gz?download" | tar -C cstrike/addons/metamod/dlls -zxvf -
ADD files/liblist.gam cstrike/liblist.gam
# Remove this line if you aren't going to install/use amxmodx, dproto and podbot
ADD files/plugins.ini cstrike/addons/metamod/plugins.ini
# Install dproto
RUN mkdir -p cstrike/addons/dproto
ADD files/dproto_i386.so cstrike/addons/dproto/dproto_i386.so
ADD files/dproto.cfg cstrike/dproto.cfg
# Install AMX mod X
RUN curl -sqL "http://www.amxmodx.org/release/amxmodx-$amxmod_version-base-linux.tar.gz" | tar -C cstrike/ -zxvf -
RUN curl -sqL "http://www.amxmodx.org/release/amxmodx-$amxmod_version-cstrike-linux.tar.gz" | tar -C cstrike/ -zxvf -
ADD files/maps.ini cstrike/addons/amxmodx/configs/maps.ini
# Install Bots (podbot)
RUN mkdir -p cstrike/addons/podbot
ADD podbot cstrike/addons/podbot
ENTRYPOINT ./hlds_run -game cstrike -strictportbind -ip 0.0.0.0 -port $PORT +sv_lan $SV_LAN +map $MAP -maxplayers $MAXPLAYERS