-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
49 lines (38 loc) · 1.49 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM ubuntu:18.04
MAINTAINER Jason Rivers <[email protected]
ENV DEBIAN_FRONTEND noninteractive
ENV STEAM_USER anonymous
# Install dependencies
RUN dpkg --add-architecture i386
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
curl \
lib32gcc1 \
lib32tinfo5 \
libncurses5 \
libncurses5:i386 \
libc6:i386 \
libstdc++6:i386 \
lib32z1 \
libcurl3-gnutls:i386
RUN useradd \
-d /home/steamsrv \
-m \
-s /bin/bash \
steamsrv
RUN mkdir -p /scripts
ADD InstallAppID /scripts/InstallAppID
ADD run_srcds_server /scripts/run_srcds_server
ADD StartServer /scripts/StartServer
USER steamsrv
# Download and extract SteamCMD
RUN mkdir -p /home/steamsrv/steamcmd &&\
cd /home/steamsrv/steamcmd &&\
curl -s http://media.steampowered.com/installer/steamcmd_linux.tar.gz | tar -vxz &&\
mkdir -p /home/steamsrv/.steam/sdk32 &&\
mkdir -p /home/steamsrv/.steam/sdk64 &&\
ln -s /home/steamsrv/steamcmd/linux32/steamclient.so /home/steamsrv/.steam/sdk32/steamclient.so && \
ln -s /home/steamsrv/steamcmd/linux64/steamclient.so /home/steamsrv/.steam/sdk64/steamclient.so
WORKDIR /home/steamsrv
RUN /home/steamsrv/steamcmd/steamcmd.sh +login anonymous +quit