-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
48 lines (33 loc) · 1.09 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
FROM i386/debian:12.4-slim
# 1) INSTALL BASICS
RUN apt-get update && apt-get upgrade -y && apt-get install -y wget libc6 libstdc++6 xxd --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.0.1.6
COPY install/hlds_l3016.tar.gz /server/
RUN tar -xzf /server/hlds_l3016.tar.gz -C /server && rm /server/hlds_l3016.tar.gz
#Copy required files
COPY install/nowon.so /server/hlds_l/
COPY install/hlds_start /server/hlds_l/
#-------------------------------
WORKDIR /server/hlds_l/
USER root
# INSTALL modified HLDS_RUN
COPY ./install/hlds_start /server/hlds_l/
COPY ./install/nowon.so /server/hlds_l/
COPY ./install/booster.so /server/hlds_l/
COPY ./install/nowon_patch.sh /server/hlds_l/
RUN chmod +x nowon_patch.sh
RUN ./nowon_patch.sh
#Install WON2 masterserver
COPY config/valve/* ./valve/
RUN chmod +x hlds_l
RUN chmod +x hlds_start
# Then, remove default mod folders
RUN rm -rf ./tfc
USER hlds
ENV TERM xterm
ENTRYPOINT ["./hlds_start"]
CMD ["-game valve", "+map crossfire", "+maxplayers 16"]