2014-11-26 22:55:23 +00:00
|
|
|
FROM ubuntu:12.04
|
2013-11-03 11:43:58 +00:00
|
|
|
MAINTAINER Max Gonzih <gonzih at gmail dot com>
|
|
|
|
|
2014-12-14 15:33:26 +00:00
|
|
|
RUN apt-get -y update && \
|
|
|
|
apt-get -y upgrade && \
|
|
|
|
apt-get -y install lib32gcc1 lib32z1 lib32ncurses5 lib32bz2-1.0 lib32asound2 wget && \
|
|
|
|
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
|
|
|
|
adduser --gecos "" tf2
|
2013-11-03 11:43:58 +00:00
|
|
|
|
|
|
|
USER tf2
|
|
|
|
ENV HOME /home/tf2
|
|
|
|
ENV SERVER $HOME/hlserver
|
2014-12-14 15:33:26 +00:00
|
|
|
|
|
|
|
RUN mkdir $SERVER && \
|
|
|
|
wget -O - http://media.steampowered.com/client/steamcmd_linux.tar.gz | tar -C $SERVER -xvz
|
|
|
|
|
2013-11-03 11:43:58 +00:00
|
|
|
ADD ./tf2_ds.txt $SERVER/tf2_ds.txt
|
|
|
|
ADD ./update.sh $SERVER/update.sh
|
|
|
|
ADD ./tf.sh $SERVER/tf.sh
|
2014-12-14 15:33:26 +00:00
|
|
|
|
2013-11-03 11:43:58 +00:00
|
|
|
RUN $SERVER/update.sh
|
|
|
|
|
2014-12-14 15:31:25 +00:00
|
|
|
EXPOSE 27015/udp 27015
|
2013-11-03 11:43:58 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["/home/tf2/hlserver/tf.sh"]
|
2014-10-25 14:48:30 +00:00
|
|
|
CMD ["+sv_pure", "1", "+mapcycle", "mapcycle_quickplay_payload.txt", "+map", "pl_badwater", "+maxplayers", "24"]
|