aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: bd75be9ef7805a48ecf7f61d8675c9a846bf48fc (plain)
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
49
50
51
52
53
54
FROM ubuntu:18.04

# Id of the user (buildtime)
ARG UID
ENV UID ${UID:-1000}
# Id of the user's group (buildtime)
ARG GID
ENV GID ${GROUP:-1000}
# Ids of the apps steamcmd will install. Ex 4020,232330
ARG INSTALL_APPS
ENV INSTALL_APPS ${INSTALL_APPS:-"740250"}
# Id of the app who will be launched
ARG LAUNCH_APP
ENV LAUNCH_APP ${LAUNCH_APP:-"740250"}

# Steam credentials
ENV LOGIN ${LOGIN:-"anonymous"}
ENV PASSWORD ${PASSWORD:-""}
# Beta keys
ENV BETA_NAME ${BETA_NAME:-"headless-client"}
ENV BETA_KEY ${BETA_KEY:-""}

RUN echo steam steam/question select "I AGREE" | debconf-set-selections && \
    echo steam steam/license note '' | debconf-set-selections

ARG DEBIAN_FRONTEND=noninteractive

RUN dpkg --add-architecture i386 && \
    apt-get update -y && \
    apt-get install -y --no-install-recommends ca-certificates locales steamcmd lib32tinfo5 tmux jq moreutils && \
    apt-get install -y gpg && \
    apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF &&\
    echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | tee /etc/apt/sources.list.d/mono-official-stable.list && \
    apt-get update -y && \
    apt-get install -y --no-install-recommends mono-complete && \
    rm -rf /var/lib/apt/lists/*

RUN locale-gen en_US.UTF-8
ENV LANG 'en_US.UTF-8'
ENV LANGUAGE 'en_US:en'

RUN ln -s /usr/games/steamcmd /usr/bin/steamcmd

ADD entrypoint.sh /entrypoint.sh

RUN chmod +x /entrypoint.sh

RUN mkdir /steam

RUN steamcmd +quit

ARG DEBIAN_FRONTEND=

ENTRYPOINT ["/entrypoint.sh"]