docker file

This commit is contained in:
Mihhail 2024-09-06 16:04:02 +03:00
parent c78e4e66a2
commit fc8ed7da10
2 changed files with 82 additions and 0 deletions

38
Dockerfile Normal file
View file

@ -0,0 +1,38 @@
FROM debian:jessie
## The Data from the official point release.
ENV ioquake_data linuxq3apoint-1.32b-3.x86.run
RUN echo "deb http://httpredir.debian.org/debian jessie contrib" >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y quake3-server \
wget && \
apt-get clean
RUN rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/* \
/usr/share/locale/* \
/var/cache/debconf/*-old \
/var/lib/apt/lists/* \
/usr/share/doc/*
WORKDIR /usr/share/games/quake3
RUN wget "http://youfailit.net/pub/idgames/idstuff/quake3/linux/${ioquake_data}" && \
chmod +x ${ioquake_data} && \
./${ioquake_data} --tar xvf && \
rm -rf ./${ioquake_data}
COPY pak0.pk3 /usr/share/games/quake3/baseq3/pak0.pk3
COPY server.cfg /usr/share/games/quake3/baseq3/server.cfg
USER Debian-quake3
EXPOSE 27960/udp
ENTRYPOINT ["/usr/games/quake3-server"]
CMD ["+map", "q3dm17", "+exec", "server.cfg"]

44
server.cfg Normal file
View file

@ -0,0 +1,44 @@
seta sv_hostname "QuakeLAN"
seta sv_maxclients 16
seta g_motd "Welcome to the official QuakeLAN Server."
seta g_quadfactor 4
seta g_gametype 0
seta timelimit 15
seta fraglimit 30
seta g_weaponrespawn 3
seta g_inactivity 3000
seta g_forcerespawn 0
seta rconpassword "supersecurebr0"
seta bot_nochat 1
seta g_log server.log
seta logfile 3
seta bot_enable 1
seta sv_master1 "master0.gamespy.com:28900"
seta sv_master2 "master.gamershut.de:27950"
seta sv_master3 "master.gnw.de:27950"
seta sv_master4 "master3.idsoftware.com:27950"
seta rconpassword "pipelion"
// Map setup..Note that q3dm19 is hated by me so not included.
set d1 "map q3dm1 ; set nextmap vstr d2"
set d2 "map q3dm2 ; set nextmap vstr d3"
set d3 "map q3dm3 ; set nextmap vstr d4"
set d4 "map q3dm4 ; set nextmap vstr d5"
set d5 "map q3dm5 ; set nextmap vstr d6"
set d6 "map q3dm6 ; set nextmap vstr d7"
set d7 "map q3dm7 ; set nextmap vstr d8"
set d8 "map q3dm8 ; set nextmap vstr d9"
set d9 "map q3dm9 ; set nextmap vstr d10"
set d10 "map q3dm10 ; set nextmap vstr d11"
set d11 "map q3dm11 ; set nextmap vstr d12"
set d12 "map q3dm12 ; set nextmap vstr d13"
set d13 "map q3dm13 ; set nextmap vstr d14"
set d14 "map q3dm14 ; set nextmap vstr d15"
set d15 "map q3dm15 ; set nextmap vstr d16"
set d16 "map q3dm16 ; set nextmap vstr d17"
set d17 "map q3dm17 ; set nextmap vstr d18"
set d18 "map q3dm18 ; set nextmap vstr d1"
vstr d1
// and some bots
addbot Major 2
addbot Sorlag 2