mirror of
https://github.com/luzifer-docker/docker-tf2-server.git
synced 2024-12-20 18:01:16 +00:00
Knut Ahlers
34097b6d33
This prevents the Docker build to create 5 useless stages which have to be pushed to the registry and be available on every server using this Dockerfile
26 lines
784 B
Docker
26 lines
784 B
Docker
FROM ubuntu:12.04
|
|
MAINTAINER Max Gonzih <gonzih at gmail dot com>
|
|
|
|
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
|
|
|
|
USER tf2
|
|
ENV HOME /home/tf2
|
|
ENV SERVER $HOME/hlserver
|
|
|
|
RUN mkdir $SERVER && \
|
|
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 27015
|
|
|
|
ENTRYPOINT ["/home/tf2/hlserver/tf.sh"]
|
|
CMD ["+sv_pure", "1", "+mapcycle", "mapcycle_quickplay_payload.txt", "+map", "pl_badwater", "+maxplayers", "24"]
|