mirror of
https://github.com/luzifer-docker/docker-tf2-server.git
synced 2024-12-20 18:01:16 +00:00
Merge pull request #1 from luzifer-docker/master
Made some improvements to the Dockerfile
This commit is contained in:
commit
8786a49546
2 changed files with 12 additions and 8 deletions
19
Dockerfile
19
Dockerfile
|
@ -1,23 +1,26 @@
|
||||||
FROM ubuntu:12.04
|
FROM ubuntu:12.04
|
||||||
MAINTAINER Max Gonzih <gonzih at gmail dot com>
|
MAINTAINER Max Gonzih <gonzih at gmail dot com>
|
||||||
|
|
||||||
RUN apt-get -y update
|
RUN apt-get -y update && \
|
||||||
RUN apt-get -y upgrade
|
apt-get -y upgrade && \
|
||||||
RUN apt-get -y install lib32gcc1 lib32z1 lib32ncurses5 lib32bz2-1.0 lib32asound2 wget
|
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/*
|
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
|
||||||
RUN adduser --gecos "" tf2
|
adduser --gecos "" tf2
|
||||||
|
|
||||||
USER tf2
|
USER tf2
|
||||||
ENV HOME /home/tf2
|
ENV HOME /home/tf2
|
||||||
ENV SERVER $HOME/hlserver
|
ENV SERVER $HOME/hlserver
|
||||||
RUN mkdir $SERVER
|
|
||||||
RUN wget -O - http://media.steampowered.com/client/steamcmd_linux.tar.gz | tar -C $SERVER -xvz
|
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 ./tf2_ds.txt $SERVER/tf2_ds.txt
|
||||||
ADD ./update.sh $SERVER/update.sh
|
ADD ./update.sh $SERVER/update.sh
|
||||||
ADD ./tf.sh $SERVER/tf.sh
|
ADD ./tf.sh $SERVER/tf.sh
|
||||||
|
|
||||||
RUN $SERVER/update.sh
|
RUN $SERVER/update.sh
|
||||||
|
|
||||||
EXPOSE 27015/udp
|
EXPOSE 27015/udp 27015
|
||||||
|
|
||||||
ENTRYPOINT ["/home/tf2/hlserver/tf.sh"]
|
ENTRYPOINT ["/home/tf2/hlserver/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", "pl_badwater", "+maxplayers", "24"]
|
||||||
|
|
|
@ -22,3 +22,4 @@ docker run -d -p 27015:27015/udp ruippeixotog/tf2-server +sv_pure 2 +map \
|
||||||
## Ports
|
## Ports
|
||||||
|
|
||||||
* **27015/udp** - The main connection port, allowing clients to connect.
|
* **27015/udp** - The main connection port, allowing clients to connect.
|
||||||
|
* **27015/tcp** - RCON port to manage server using admin tools
|
||||||
|
|
Loading…
Reference in a new issue