mirror of
https://github.com/luzifer-docker/docker-tf2-server.git
synced 2024-12-21 02:11:15 +00:00
23 lines
634 B
Text
23 lines
634 B
Text
|
FROM ubuntu
|
||
|
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 adduser --gecos "" tf2
|
||
|
|
||
|
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
|
||
|
|
||
|
EXPOSE 27015/udp
|
||
|
|
||
|
ENTRYPOINT ["/home/tf2/hlserver/tf.sh"]
|
||
|
CMD ["+sv_pure", "1", "+map", "pl_badwater.bsp", "+maxplayers", "24"]
|