-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) · 728 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (24 loc) · 728 Bytes
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
FROM ubuntu:20.04
RUN apt-get update
# install dependency
RUN apt-get install -y software-properties-common
RUN add-apt-repository multiverse
RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get install -y lib32gcc-s1
# install steamcmd from ubuntu repository
RUN echo steamcmd steam/question select "I AGREE" | debconf-set-selections
RUN apt-get install -y steamcmd
# install tools to install mods and edit config files
RUN apt-get install -y wget
RUN apt-get install -y unzip
RUN apt-get install -y vim
# add steam user
RUN useradd -m steam
WORKDIR /home/steam
# setup volume target
RUN mkdir /home/steam/srcds
RUN chown steam /home/steam/srcds
# bootstrap steamcmd
USER steam
RUN /usr/games/steamcmd +quit