cleanup dockerfile

This commit is contained in:
Robin Appelman 2016-04-09 16:50:06 +02:00
commit 59664088db

View file

@ -1,10 +1,9 @@
from debian:jessie
maintainer Robin Appelman <robin@icewind.nl>
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install lib32gcc1 wget lib32ncurses5 bzip2 unzip
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apt-get -y update \
&& apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install lib32gcc1 wget lib32ncurses5 bzip2 unzip \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ENV USER tf2
@ -17,14 +16,11 @@ USER $USER
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
ADD ./clean.sh $SERVER/clean.sh
ADD tf2_ds.txt update.sh tf.sh clean.sh $SERVER/
RUN $SERVER/update.sh && $SERVER/clean.sh
EXPOSE 27015/udp
WORKDIR /home/$USER/hlserver
ENTRYPOINT ["./tf.sh"]
CMD ["+sv_pure", "1", "+mapcycle", "mapcycle_quickplay_payload.txt", "+map", "pl_badwater", "+maxplayers", "24"]
CMD ["+sv_pure", "1", "+mapcycle", "mapcycle_quickplay_payload.txt", "+map", "cp_badlands", "+maxplayers", "24"]