docker-games-scripts/linux/steamcmd/Dockerfile
2020-02-10 19:10:51 +03:00

37 lines
1.4 KiB
Docker

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