2016-07-28 08:34:21 +00:00
|
|
|
FROM debian:jessie
|
2016-04-26 23:10:49 +00:00
|
|
|
MAINTAINER Andrey Arapov <andrey.arapov@nixaid.com>
|
|
|
|
|
|
|
|
# To avoid problems with Dialog and curses wizards
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
# 1. Keep the image updated
|
|
|
|
# 2. Install the dependencies
|
|
|
|
# 3. Install the latest version of Steam
|
|
|
|
# http://repo.steampowered.com/steam
|
|
|
|
RUN echo "deb [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam" > /etc/apt/sources.list.d/tmp-steam.list && \
|
|
|
|
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0xF24AEA9FB05498B7 && \
|
2016-07-28 08:34:21 +00:00
|
|
|
dpkg --add-architecture i386 && \
|
2016-08-01 19:01:09 +00:00
|
|
|
apt-get clean && \
|
2016-04-26 23:10:49 +00:00
|
|
|
apt-get update && \
|
|
|
|
apt-get -y upgrade && \
|
|
|
|
apt-get -y dist-upgrade && \
|
|
|
|
apt-get -fy install && \
|
2016-07-28 08:34:21 +00:00
|
|
|
apt-get -y install binutils pciutils pulseaudio libcanberra-gtk-module \
|
|
|
|
libopenal1 libnss3 libgconf-2-4 libxss1 libnm-glib4 \
|
|
|
|
libnm-util2 libglu1-mesa locales \
|
|
|
|
steam-launcher \
|
|
|
|
mesa-utils:i386 \
|
|
|
|
libstdc++5 libstdc++5:i386 libbz2-1.0:i386 \
|
|
|
|
libavformat56 libswscale3 libavcodec56:i386 \
|
|
|
|
libavformat56:i386 libavresample2:i386 libavutil54:i386 \
|
|
|
|
libswscale3:i386 libsdl2-2.0-0 libsdl2-2.0-0:i386 \
|
|
|
|
libgl1-mesa-dri:i386 libgl1-mesa-glx:i386 libc6:i386 \
|
|
|
|
libxtst6:i386 libxrandr2:i386 libglib2.0-0:i386 \
|
|
|
|
libgtk2.0-0:i386 libgdk-pixbuf2.0-0:i386 libsm6:i386 \
|
|
|
|
libice6:i386 libopenal1:i386 libdbus-glib-1-2:i386 \
|
|
|
|
libnm-glib4:i386 libnm-util2:i386 libusb-1.0-0:i386 \
|
|
|
|
libnss3:i386 libgconf-2-4:i386 libxss1:i386 libcurl3:i386 \
|
|
|
|
libv8-dev:i386 \
|
2016-08-05 21:02:44 +00:00
|
|
|
libcanberra-gtk-module:i386 libpulse0:i386 attr && \
|
2016-04-26 23:10:49 +00:00
|
|
|
rm -f /etc/apt/sources.list.d/tmp-steam.list && \
|
|
|
|
rm -rf /var/lib/apt/lists
|
|
|
|
|
2016-04-29 19:54:22 +00:00
|
|
|
# Not sure whether we really need these:
|
|
|
|
# libcurl3 libcanberra-gtk-module
|
2016-04-28 21:14:42 +00:00
|
|
|
|
2016-04-26 23:10:49 +00:00
|
|
|
# Workaround missing lib in .local/share/Steam/ubuntu12_32/steamclient.so
|
2016-04-29 19:54:22 +00:00
|
|
|
RUN ln -sv libudev.so.1 /lib/i386-linux-gnu/libudev.so.0
|
2016-04-26 23:10:49 +00:00
|
|
|
|
2016-10-26 10:35:39 +00:00
|
|
|
# Workaround: Ubuntu 16.04 doesn't have libgcrypt11 nor libjson-c3, so we take
|
2016-10-25 11:33:49 +00:00
|
|
|
# then from trusty
|
|
|
|
# libcryptot11 is required by Half-Life based games
|
2016-07-28 08:34:21 +00:00
|
|
|
# TODO: use debian mirrors if possible?
|
|
|
|
ADD http://archive.ubuntu.com/ubuntu/pool/main/libg/libgcrypt11/libgcrypt11_1.5.3-2ubuntu4_i386.deb /tmp/libgcrypt11_i386.deb
|
|
|
|
ADD http://archive.ubuntu.com/ubuntu/pool/main/libg/libgcrypt11/libgcrypt11_1.5.3-2ubuntu4_amd64.deb /tmp/libgcrypt11_amd64.deb
|
2016-10-25 11:33:49 +00:00
|
|
|
ADD http://ftp.de.debian.org/debian/pool/main/j/json-c/libjson-c3_0.12.1-1_amd64.deb /tmp/libjson-c3_amd64.deb
|
2016-04-29 20:02:55 +00:00
|
|
|
RUN cd /tmp && \
|
2016-10-25 11:33:49 +00:00
|
|
|
dpkg -i *.deb && \
|
|
|
|
rm -f *.deb
|
2016-07-28 08:34:21 +00:00
|
|
|
|
|
|
|
|
2016-10-26 10:35:39 +00:00
|
|
|
# Fix bug https://github.com/arno01/steam/issues/11 where Pulseaudio crashes
|
|
|
|
# microphone is accessed via push-to-talk.
|
|
|
|
RUN echo "enable-shm = no" >> /etc/pulse/client.conf
|
|
|
|
|
2016-07-28 08:34:21 +00:00
|
|
|
# locale-gen: Generate locales based on /etc/locale.gen file
|
|
|
|
# update-locale: Generate config /etc/default/locale (later read by /etc/pam.d/su, /etc/pam.d/login, /etc/pam.d/polkit-1)
|
|
|
|
RUN 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
|
|
|
|
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
|
2016-04-26 23:10:49 +00:00
|
|
|
# Create a user
|
|
|
|
ENV USER user
|
|
|
|
ENV UID 1000
|
|
|
|
ENV GROUPS audio,video
|
|
|
|
ENV HOME /home/$USER
|
|
|
|
RUN useradd -m -d $HOME -u $UID -G $GROUPS $USER
|
|
|
|
|
|
|
|
WORKDIR $HOME
|
2016-04-29 19:54:22 +00:00
|
|
|
|
|
|
|
ENV STEAM_RUNTIME 0
|
|
|
|
|
2016-08-05 21:02:44 +00:00
|
|
|
COPY ./launch /launch
|
2016-08-06 13:04:44 +00:00
|
|
|
ENTRYPOINT [ "/bin/bash", "/launch" ]
|