mirror of
https://codeberg.org/spire/docker-spire-server.git
synced 2026-06-03 06:14:10 +02:00
web interface
This commit is contained in:
parent
7d972f8bfe
commit
589155a016
3 changed files with 15 additions and 4 deletions
11
Dockerfile
11
Dockerfile
|
|
@ -1,11 +1,18 @@
|
|||
from spiretf/docker-comp-server
|
||||
maintainer Robin Appelman <robin@icewind.nl>
|
||||
FROM golang AS build-stage
|
||||
RUN git clone https://github.com/ddeityy/exposed-nipple && \
|
||||
cd exposed-nipple && \
|
||||
git checkout 2524164364adc89e37d1d4addac04edae3d39482
|
||||
RUN cd exposed-nipple && go build -o nipple -o /exposed-nipple ./cmd/main.go
|
||||
|
||||
FROM spiretf/docker-comp-server
|
||||
|
||||
USER root
|
||||
ADD ./server.cfg $SERVER/tf2/tf/cfg/server.cfg
|
||||
RUN chown tf2:tf2 $SERVER/tf2/tf/cfg/server.cfg
|
||||
USER $USER
|
||||
|
||||
COPY --from=build-stage /exposed-nipple /exposed-nipple
|
||||
RUN mkdir -p internal/config
|
||||
ADD ./tf.sh $SERVER/tf.sh
|
||||
|
||||
ENTRYPOINT ["./tf.sh"]
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ writeid
|
|||
// Force Preload
|
||||
sv_forcepreload 1 // forces server side preloading, recommended not to change this cvar
|
||||
|
||||
// Logging
|
||||
// Logging
|
||||
log 0
|
||||
|
||||
// SourceTV Settings
|
||||
|
|
@ -75,3 +75,5 @@ pp_disablestickies 1
|
|||
pp_disablesentries 1
|
||||
|
||||
sm_class_ordered_spawnpoints 1
|
||||
|
||||
rcon_address 0.0.0.0
|
||||
|
|
|
|||
4
tf.sh
4
tf.sh
|
|
@ -15,5 +15,7 @@ echo "sm_autoexec_mode ${CONFIG_MODE:-6v6}" >> $CFG
|
|||
echo "tv_name \"${TV_NAME:-"${NAME:-"Spire Server"} TV"}\"" >> $CFG
|
||||
echo "${EXTRA_CFG}" >> $CFG
|
||||
|
||||
RCON_HOST=127.0.0.1:27015 HTTP_SERVER_PORT=80 /exposed-nipple &
|
||||
|
||||
cd $HOME/hlserver
|
||||
tf2/srcds_run -game tf -tickrate 120 -steamcmd_script ~/hlserver/tf2_ds.txt -enablefakeip +map ${MAP:-cp_badlands} $@
|
||||
tf2/srcds_run -game tf -tickrate 120 -steamcmd_script ~/hlserver/tf2_ds.txt -enablefakeip +ip 0.0.0.0 +map ${MAP:-cp_badlands} $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue