2021-12-19 15:40:11 +00:00
|
|
|
FROM ubuntu:18.04 AS sunshine-ubuntu_18_04
|
2021-10-03 16:46:34 +00:00
|
|
|
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
ARG TZ="Europe/London"
|
|
|
|
|
2021-12-19 19:41:04 +00:00
|
|
|
RUN add-apt-repository ppa:ubuntu-toolchain-r/test && \
|
2021-12-19 16:10:40 +00:00
|
|
|
apt-get update -y && \
|
2021-12-19 19:41:04 +00:00
|
|
|
apt-get install -y \
|
|
|
|
build-essential \
|
|
|
|
cmake \
|
|
|
|
gcc-10
|
|
|
|
git \
|
|
|
|
g++-10 \
|
|
|
|
libavdevice-dev \
|
|
|
|
libboost-thread-dev \
|
|
|
|
libboost-filesystem-dev \
|
|
|
|
libboost-log-dev \
|
|
|
|
libcap-dev \
|
|
|
|
libdrm-dev \
|
|
|
|
libevdev-dev \
|
|
|
|
libpulse-dev \
|
|
|
|
libopus-dev \
|
|
|
|
libssl-dev \
|
|
|
|
libwayland-dev \
|
|
|
|
libx11-dev \
|
|
|
|
libxcb-shm0-dev \
|
|
|
|
libxcb-xfixes0-dev \
|
|
|
|
libxcb1-dev \
|
|
|
|
libxfixes-dev \
|
|
|
|
libxrandr-dev \
|
|
|
|
libxtst-dev \
|
|
|
|
software-properties-common \
|
|
|
|
wget \
|
|
|
|
&& \
|
|
|
|
apt-get clean && \
|
|
|
|
apt-get autoclean
|
2021-10-03 16:46:34 +00:00
|
|
|
|
|
|
|
RUN cp /usr/bin/gcc-10 /usr/bin/gcc && cp /usr/bin/g++-10 /usr/bin/gcc-10
|
|
|
|
|
|
|
|
RUN wget https://developer.download.nvidia.com/compute/cuda/11.4.2/local_installers/cuda_11.4.2_470.57.02_linux.run --progress=bar:force:noscroll -q --show-progress -O /root/cuda.run && chmod a+x /root/cuda.run
|
|
|
|
RUN /root/cuda.run --silent --toolkit --toolkitpath=/usr --no-opengl-libs --no-man-page --no-drm && rm /root/cuda.run
|
|
|
|
|
|
|
|
COPY build-private.sh /root/build.sh
|
|
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT ["/root/build.sh"]
|