MangoHud/steamrt.Dockerfile.in

25 lines
925 B
Docker
Raw Permalink Normal View History

FROM scratch
ADD com.valvesoftware.SteamRuntime.Sdk-amd64,i386-%RUNTIME%-sysroot.tar.gz /
WORKDIR /build
RUN \
set -e; \
mkdir -p /run/systemd; \
echo 'docker' > /run/systemd/container; \
mkdir -p /prep; cd /prep; \
2021-07-06 17:08:46 +00:00
if [ -f /usr/bin/python3.5 ]; then \
ln -sf python3.5 /usr/bin/python3; \
curl https://bootstrap.pypa.io/pip/3.5/get-pip.py -o get-pip.py; \
else \
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py; \
fi; \
if [ ! -f /usr/bin/unzip ]; then apt-get update; apt-get -y install unzip; fi; \
python3 ./get-pip.py; \
pip3 install meson mako; \
curl -LO http://mirrors.kernel.org/ubuntu/pool/main/n/nvidia-settings/libxnvctrl0_440.64-0ubuntu1_amd64.deb; \
curl -LO http://mirrors.kernel.org/ubuntu/pool/main/n/nvidia-settings/libxnvctrl-dev_440.64-0ubuntu1_amd64.deb; \
dpkg -i libxnvctrl0_440.64-0ubuntu1_amd64.deb libxnvctrl-dev_440.64-0ubuntu1_amd64.deb; \
cd /; rm -fr /prep; \
:
CMD ["/bin/bash"]