steam/Dockerfile
2018-12-22 18:07:11 +01:00

53 lines
2.0 KiB
Docker

FROM ubuntu:bionic
# To avoid problems with Dialog and curses wizards
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
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
COPY ./dnsmasq.conf /etc/dnsmasq.conf
COPY ./resolv.dnsmasq /etc/resolv.dnsmasq
# 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 && \
locale-gen && \
update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
# 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
# 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
# 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
# Enable Vulkan library.
RUN apt-get -y install libvulkan1 libvulkan1:i386 vulkan-utils
LABEL maintainer="Andrey Arapov <andrey.arapov@nixaid.com>"
COPY ./launch /launch
ENTRYPOINT [ "/bin/bash", "/launch" ]