Created
July 23, 2017 14:16
-
-
Save filipnyquist/6402f0e1a314e6c151b480df38627ebe to your computer and use it in GitHub Desktop.
csgo-install-Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM phusion/baseimage:0.9.22 | |
MAINTAINER Filip Nyquist (filipnyquist) <fillerix99@gmail.com> | |
# Install deps | |
RUN dpkg --add-architecture i386 && \ | |
apt-get update && \ | |
apt-get install -y --no-install-recommends curl wget file bzip2 gzip unzip lib32gcc1 libstdc++6 libstdc++6:i386 | |
# Add a steam user as we are not going to run as root | |
RUN useradd -ms /bin/bash steam | |
WORKDIR /home/steam | |
USER steam | |
# Download steamcmd | |
RUN wget -O /tmp/steamcmd_linux.tar.gz http://media.steampowered.com/installer/steamcmd_linux.tar.gz && \ | |
tar -xvzf /tmp/steamcmd_linux.tar.gz && \ | |
rm /tmp/steamcmd_linux.tar.gz | |
# Install CSGO once to speed up container startup | |
RUN ./steamcmd.sh +login anonymous +force_install_dir ./csgo +app_update 740 validate +quit # Update to date as of mid 2017 | |
# Expose our ports | |
EXPOSE 27015/udp | |
EXPOSE 27015 | |
# Link steam libs | |
RUN ln -s /home/steam/linux32 /home/steam/.steam/sdk32 | |
#ADD ./server.sh server.sh | |
# Download metamod and sourcemod | |
WORKDIR /home/steam/csgo/csgo | |
RUN wget -4 https://mms.alliedmods.net/mmsdrop/1.10/mmsource-1.10.7-git959-linux.tar.gz && \ | |
tar xfz mmsource* && \ | |
rm -f mmsource* && \ | |
sed -i 's|addons/metamod/bin/server|../csgo/addons/metamod/bin/server|g' addons/metamod.vdf | |
RUN wget -4 https://sm.alliedmods.net/smdrop/1.8/sourcemod-1.8.0-git6015-linux.tar.gz && \ | |
tar xfz sourcemod* && \ | |
rm -f sourcemod* | |
# Install get5,SMJansson and SteamWorks :) | |
RUN wget -4 https://github.com/splewis/get5/releases/download/0.5.2/get5_0.5.2.zip && \ | |
unzip get5_* | |
RUN wget -4 https://github.com/thraaawn/SMJansson/raw/master/bin/smjansson.ext.so && \ | |
mv smjansson.ext.so addons/sourcemod/extensions | |
RUN wget -4 http://users.alliedmods.net/~kyles/builds/SteamWorks/SteamWorks-git121-linux.tar.gz && \ | |
tar xfz SteamWorks* && \ | |
rm -f SteamWorks* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment