mirror of
https://codeberg.org/spire/docker-tf2-server.git
synced 2026-06-03 18:04:11 +02:00
Move stuff around
And yes, I don't lake uppercase
This commit is contained in:
parent
9de7854dd8
commit
64c1c110a6
1 changed files with 23 additions and 19 deletions
42
Dockerfile
42
Dockerfile
|
|
@ -1,23 +1,27 @@
|
|||
FROM ubuntu:12.04
|
||||
MAINTAINER Max Gonzih <gonzih at gmail dot com>
|
||||
from ubuntu:12.04
|
||||
maintainer Max Gonzih <gonzih at gmail dot com>
|
||||
|
||||
RUN apt-get -y update
|
||||
RUN apt-get -y upgrade
|
||||
RUN apt-get -y install lib32gcc1 lib32z1 lib32ncurses5 lib32bz2-1.0 lib32asound2 wget
|
||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
RUN adduser --gecos "" tf2
|
||||
run apt-get -y update
|
||||
run apt-get -y upgrade
|
||||
run apt-get -y install lib32gcc1 lib32z1 lib32ncurses5 lib32bz2-1.0 lib32asound2 wget
|
||||
run apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
USER tf2
|
||||
ENV HOME /home/tf2
|
||||
ENV SERVER $HOME/hlserver
|
||||
RUN mkdir $SERVER
|
||||
RUN wget -O - http://media.steampowered.com/client/steamcmd_linux.tar.gz | tar -C $SERVER -xvz
|
||||
ADD ./tf2_ds.txt $SERVER/tf2_ds.txt
|
||||
ADD ./update.sh $SERVER/update.sh
|
||||
ADD ./tf.sh $SERVER/tf.sh
|
||||
RUN $SERVER/update.sh
|
||||
env USER tf2
|
||||
|
||||
EXPOSE 27015/udp
|
||||
|
||||
ENTRYPOINT ["/home/tf2/hlserver/tf.sh"]
|
||||
CMD ["+sv_pure", "1", "+mapcycle", "mapcycle_quickplay_payload.txt", "+map", "pl_badwater", "+maxplayers", "24"]
|
||||
run adduser --gecos "" $USER
|
||||
|
||||
user $USER
|
||||
env HOME /home/$USERc
|
||||
env SERVER $HOME/hlserver
|
||||
run mkdir $SERVER
|
||||
run wget -O - http://media.steampowered.com/client/steamcmd_linux.tar.gz | tar -C $SERVER -xvz
|
||||
add ./tf2_ds.txt $SERVER/tf2_ds.txt
|
||||
add ./update.sh $SERVER/update.sh
|
||||
add ./tf.sh $SERVER/tf.sh
|
||||
run $SERVER/update.sh
|
||||
|
||||
expose 27015/udp
|
||||
|
||||
entrypoint ["/home/$USER/hlserver/tf.sh"]
|
||||
cmd ["+sv_pure", "1", "+mapcycle", "mapcycle_quickplay_payload.txt", "+map", "pl_badwater", "+maxplayers", "24"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue