mirror of
https://codeberg.org/spire/docker-tf2-server.git
synced 2026-06-03 09:54:20 +02:00
update base image
This commit is contained in:
parent
0ebf4da114
commit
3784620a33
6 changed files with 34 additions and 24 deletions
39
Dockerfile
39
Dockerfile
|
|
@ -1,23 +1,34 @@
|
|||
from 32bit/ubuntu:16.04
|
||||
from ubuntu:22.04
|
||||
maintainer Robin Appelman <robin@icewind.nl>
|
||||
|
||||
RUN apt-get -y update \
|
||||
&& apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install libstdc++6 libcurl3-gnutls wget libncurses5 bzip2 unzip vim nano \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
RUN echo steam steam/question select "I AGREE" | debconf-set-selections \
|
||||
&& echo steam steam/license note '' | debconf-set-selections \
|
||||
&& apt-get -y update \
|
||||
&& apt-get -y install software-properties-common \
|
||||
&& add-apt-repository multiverse \
|
||||
&& dpkg --add-architecture i386 \
|
||||
&& apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install libstdc++6 libcurl3-gnutls wget libncurses5 bzip2 unzip vim nano lib32gcc-s1 lib32stdc++6 steamcmd \
|
||||
&& apt-get install -y --no-install-recommends --no-install-suggests \
|
||||
ca-certificates \
|
||||
lib32z1 \
|
||||
libncurses5:i386 \
|
||||
libbz2-1.0:i386 \
|
||||
libtinfo5:i386 \
|
||||
libcurl3-gnutls:i386 \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
|
||||
&& useradd -m tf2 \
|
||||
&& su tf2 -c '/usr/games/steamcmd +quit'
|
||||
|
||||
USER tf2
|
||||
|
||||
ENV USER tf2
|
||||
|
||||
RUN useradd $USER
|
||||
ENV HOME /home/$USER
|
||||
RUN mkdir $HOME
|
||||
RUN chown $USER:$USER $HOME
|
||||
|
||||
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 update.sh tf.sh clean.sh $SERVER/
|
||||
RUN $SERVER/update.sh && $SERVER/clean.sh
|
||||
|
||||
ADD --chown=tf2:tf2 tf2_ds.txt update.sh clean.sh tf.sh $SERVER/
|
||||
RUN mkdir -p $SERVER/tf2 \
|
||||
&& $SERVER/update.sh \
|
||||
&& $SERVER/clean.sh
|
||||
|
||||
EXPOSE 27015/udp
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue