-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
44 lines (31 loc) · 1.1 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
FROM i386/debian:8-slim
# Force Debian 8 installation!
RUN echo "deb http://archive.debian.org/debian jessie main contrib non-free" > /etc/apt/sources.list
# 1) Install dependencies
RUN apt-get update && apt-get upgrade -y && apt-get install -y wget libc6 libstdc++6 --force-yes
# 2) Create user
RUN groupadd -r hlds
RUN useradd --no-log-init --system --create-home --home-dir /server --gid hlds hlds
USER hlds
# 3) Install HLDS 3.1.1.1 and 3.1.1.e
RUN wget -q -O - http://dl.4players.de/f0/4players/halflife/server/linux/hlds_l_3111_full.bin | \
tail -c+8338 | head -c121907818 | \
tar -xzf - -C /server
COPY install/hlds_l_3111e_update.tar.gz /server
RUN tar -xzf /server/hlds_l_3111e_update.tar.gz -C /server
RUN rm /server/hlds_l_3111e_update.tar.gz
WORKDIR /server/hlds_l/
#Install WON2Fixes and modified HLDS_RUN
USER root
COPY patch/* ./
COPY config/valve ./valve
RUN chmod +x hlds_run
# Then, remove mod folders
RUN rm -rf ./tfc
RUN rm -rf ./dmc
RUN rm -rf ./ricochet
RUN rm -rf ./cstrike
USER hlds
ENV TERM xterm
ENTRYPOINT ["./hlds_run"]
CMD ["-game valve", "+map crossfire", "+maxplayers 16"]