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 # 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 RUN apt-get -y install gosu # Set locale to: en_US.UTF-8 RUN apt-get -y install locales && \ /bin/echo -e "en_US.UTF-8 UTF-8\nen_GB.UTF-8 UTF-8" | tee /etc/locale.gen && \ locale-gen && \ update-locale LANG=en_US.UTF-8 LC_ALL=en_GB.UTF-8 LABEL maintainer="Andrey Arapov " COPY ./launch /launch ENTRYPOINT [ "/bin/bash", "/launch" ]