Update Dockerfile

This commit is contained in:
Andrew Marchukov 2021-04-22 16:01:02 +03:00 committed by GitHub
parent 48fa6ce741
commit 10353d5ae5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,28 +2,27 @@ FROM ubuntu:latest
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install --no-install-recommends -y \
RUN apt-get update && apt-get install --no-install-recommends --no-install-suggests -y \
lib32gcc1 \
curl \
ca-certificates \
language-pack-en-base \
locales && \
apt-get -y upgrade && \
locale-gen "en_US.UTF-8" && \
export LC_ALL="en_US.UTF-8" && \
useradd -m steam && \
su "steam" -c \
"mkdir -p /home/steam/steamcmd && cd /home/steam/steamcmd && \
curl -o steamcmd_linux.tar.gz "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" && \
tar zxf steamcmd_linux.tar.gz && \
rm steamcmd_linux.tar.gz" && \
apt-get remove --purge -y curl && \
apt-get clean autoclean && \
apt-get autoremove -y && \
rm -rf /var/lib/{apt,dpkg,cache,log}/ && \
useradd -m steam
su "steam" -c "./home/steam/steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/steam/steamcmd/sandstorm/ +app_update 581330 validate +quit"
USER steam
RUN mkdir -p /home/steam/steamcmd && cd /home/steam/steamcmd && \
curl -o steamcmd_linux.tar.gz "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" && \
tar zxf steamcmd_linux.tar.gz && \
rm steamcmd_linux.tar.gz
RUN ./home/steam/steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/steam/steamcmd/sandstorm/ +app_update 581330 validate +quit
ENTRYPOINT /home/steam/steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/steam/steamcmd/sandstorm/ +app_update 581330 +quit && \
/home/steam/steamcmd/sandstorm/Insurgency/Binaries/Linux/InsurgencyServer-Linux-Shipping -hostname="$HOSTNAME" -Port=$PORT -QueryPort=$QUERYPORT ${LAUNCH_SERVER_ENV}