2018-12-21 15:52:33 +00:00
|
|
|
FROM ubuntu:bionic
|
2016-04-26 23:10:49 +00:00
|
|
|
|
|
|
|
# To avoid problems with Dialog and curses wizards
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
2016-10-25 11:32:32 +00:00
|
|
|
RUN apt-get update && \
|
2018-12-21 15:52:33 +00:00
|
|
|
apt-get -y install gnupg
|
|
|
|
|
|
|
|
# Install Steam
|
|
|
|
RUN echo "deb [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam" | tee /etc/apt/sources.list.d/tmp-steam.list && \
|
|
|
|
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0xF24AEA9FB05498B7 && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get -y install steam-launcher && \
|
|
|
|
rm -vf /etc/apt/sources.list.d/tmp-steam.list
|
|
|
|
|
|
|
|
# Install Steam dependencies
|
|
|
|
RUN dpkg --add-architecture i386 && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get -y install libgl1-mesa-dri:i386 libgl1-mesa-glx:i386 libc6:i386
|
|
|
|
|
|
|
|
# Steam severely floods DNS requests on Linux, so let's use a DNS cache.
|
|
|
|
# Run docker image with: ``--dns 127.0.0.1`` flag to use the dnsmasq for DNS cache.
|
|
|
|
# https://github.com/ValveSoftware/steam-for-linux/issues/3401
|
|
|
|
RUN apt-get -y install dnsmasq
|
2016-10-25 11:32:32 +00:00
|
|
|
COPY ./dnsmasq.conf /etc/dnsmasq.conf
|
2018-12-21 15:52:33 +00:00
|
|
|
COPY ./resolv.dnsmasq /etc/resolv.dnsmasq
|
2016-07-28 08:34:21 +00:00
|
|
|
|
2018-12-21 15:52:33 +00:00
|
|
|
# Set locale to: en_US.UTF-8
|
|
|
|
RUN apt-get -y install locales && \
|
|
|
|
sed -i.orig '/^# en_US.UTF-8.*/s/^#.//g' /etc/locale.gen && \
|
2016-07-28 08:34:21 +00:00
|
|
|
locale-gen && \
|
|
|
|
update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
|
|
|
|
|
2018-12-21 15:52:33 +00:00
|
|
|
# Let ALSA lib talk to Pulseaudio.
|
|
|
|
# AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"
|
|
|
|
# ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
|
|
|
|
RUN apt-get -y install libasound2-plugins libasound2-plugins:i386
|
2018-11-08 14:31:37 +00:00
|
|
|
|
2018-12-21 15:52:33 +00:00
|
|
|
# Fix to: "steam launcher crashes on second run (debian sid in a chroot on debian wheezy) #3501"
|
|
|
|
# https://github.com/ValveSoftware/steam-for-linux/issues/3501
|
|
|
|
RUN apt-get -y install libnm-glib4:i386 libnm-util2:i386
|
2016-04-29 19:54:22 +00:00
|
|
|
|
2018-12-21 15:52:33 +00:00
|
|
|
# Fix to: "Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element"
|
|
|
|
# https://github.com/ValveSoftware/steam-for-linux/issues/3307
|
|
|
|
RUN apt-get -y install fontconfig:i386
|
2016-04-29 19:54:22 +00:00
|
|
|
|
2018-12-21 15:52:33 +00:00
|
|
|
LABEL maintainer="Andrey Arapov <andrey.arapov@nixaid.com>"
|
2016-08-05 21:02:44 +00:00
|
|
|
COPY ./launch /launch
|
2016-08-06 13:04:44 +00:00
|
|
|
ENTRYPOINT [ "/bin/bash", "/launch" ]
|