From 9b3b21579bb802af45034c789b9096d5e0dca4ec Mon Sep 17 00:00:00 2001 From: STAM Date: Mon, 10 Feb 2020 19:10:51 +0300 Subject: [PATCH] steamcmd --- linux/steamcmd/Dockerfile | 36 ++++++++++++++++++++++++++++++++++++ linux/steamcmd/Makefile | 5 +++++ 2 files changed, 41 insertions(+) create mode 100644 linux/steamcmd/Dockerfile create mode 100644 linux/steamcmd/Makefile diff --git a/linux/steamcmd/Dockerfile b/linux/steamcmd/Dockerfile new file mode 100644 index 0000000..a8897d0 --- /dev/null +++ b/linux/steamcmd/Dockerfile @@ -0,0 +1,36 @@ +FROM epicmorg/edge +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +ENV LD_LIBRARY_PATH=/steamcmd/linux64 +ENV VALVE_FOLDER=/valve +ENV VALVE_STEAMCMD_FOLDER=${VALVE_FOLDER}/steamcmd +ENV VALVE_GAME_FOLDER=${VALVE_FOLDER}/game +ENV PATH="${VALVE_STEAMCMD_FOLDER}:${PATH}" + +WORKDIR $VALVE_STEAMCMD_FOLDER + +################################################################## +# installing steamcmd +################################################################## +RUN mkdir -p $VALVE_STEAMCMD_FOLDER +ADD http://media.steampowered.com/installer/steamcmd_linux.tar.gz $VALVE_STEAMCMD_FOLDER + +RUN dpkg --add-architecture i386 && \ + apt-get update && \ + apt-get autoremove -y && \ + apt-get install -y --allow-unauthenticated gcc-multilib lib32stdc++6 lib32gcc1 && \ + tar -xvf $VALVE_STEAMCMD_FOLDER/steamcmd_linux.tar.gz -C $VALVE_STEAMCMD_FOLDER && \ + ln -s $VALVE_STEAMCMD_FOLDER/steamcmd.sh $VALVE_STEAMCMD_FOLDER/steamcmd && \ + ln -s $VALVE_STEAMCMD_FOLDER/steam.sh $VALVE_STEAMCMD_FOLDER/steam && \ + steamcmd +quit + +################################################################## +# cleaninig up +################################################################## +RUN apt clean -y && \ + apt autoclean -y && \ + rm -rfv $VALVE_STEAMCMD_FOLDER/steamcmd_linux.tar.gz && \ + rm -rfv /tmp/ && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb diff --git a/linux/steamcmd/Makefile b/linux/steamcmd/Makefile new file mode 100644 index 0000000..14577f8 --- /dev/null +++ b/linux/steamcmd/Makefile @@ -0,0 +1,5 @@ +all: emgcmd +emgcmd: + docker build --compress -t epicmorg/steamcmd . + docker push epicmorg/steamcmd +