diff options
Diffstat (limited to '')
-rw-r--r-- | Dockerfile | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bdc600d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,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 && \ + 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"] |