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
|
|
|
|
2022-04-18 18:53:28 +00:00
|
|
|
# Ubuntu 18.04 end of life is April 2028
|
|
|
|
|
2021-10-03 16:46:34 +00:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
ARG TZ="Europe/London"
|
|
|
|
|
2021-12-19 22:19:01 +00:00
|
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
2021-12-19 20:05:23 +00:00
|
|
|
RUN apt-get update -y && \
|
2021-12-19 23:35:02 +00:00
|
|
|
apt-get install -y \
|
|
|
|
software-properties-common \
|
2022-03-15 23:18:23 +00:00
|
|
|
&& add-apt-repository ppa:savoury1/graphics && \
|
2021-12-20 00:20:20 +00:00
|
|
|
add-apt-repository ppa:savoury1/multimedia && \
|
|
|
|
add-apt-repository ppa:savoury1/ffmpeg4 && \
|
2022-03-15 23:18:23 +00:00
|
|
|
add-apt-repository ppa:savoury1/boost-defaults-1.71 && \
|
|
|
|
add-apt-repository ppa:ubuntu-toolchain-r/test && \
|
2021-12-19 16:10:40 +00:00
|
|
|
apt-get update -y && \
|
2021-12-19 21:02:13 +00:00
|
|
|
apt-get install -y \
|
|
|
|
build-essential \
|
2021-12-19 22:19:01 +00:00
|
|
|
cmake \
|
2021-12-21 04:23:26 +00:00
|
|
|
gcc-10 \
|
2021-12-19 21:02:13 +00:00
|
|
|
git \
|
2021-12-21 04:23:26 +00:00
|
|
|
g++-10 \
|
2021-12-19 21:02:13 +00:00
|
|
|
libavdevice-dev \
|
2022-03-15 23:18:23 +00:00
|
|
|
libboost-filesystem1.71-dev \
|
|
|
|
libboost-log1.71-dev \
|
|
|
|
libboost-regex1.71-dev \
|
|
|
|
libboost-thread1.71-dev \
|
2021-12-19 21:02:13 +00:00
|
|
|
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 \
|
2022-03-15 23:18:23 +00:00
|
|
|
wget \
|
2021-12-19 19:55:53 +00:00
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2021-10-03 16:46:34 +00:00
|
|
|
|
2022-03-15 23:18:23 +00:00
|
|
|
# Update gcc alias
|
2021-12-21 04:23:26 +00:00
|
|
|
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10
|
2021-10-03 16:46:34 +00:00
|
|
|
|
2022-03-15 23:18:23 +00:00
|
|
|
# Install CuDA
|
2021-10-03 16:46:34 +00:00
|
|
|
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
|
|
|
|
|
2022-03-15 23:18:23 +00:00
|
|
|
# Install cmake
|
|
|
|
ADD https://cmake.org/files/v3.22/cmake-3.22.2-linux-x86_64.sh /cmake-3.22.2-linux-x86_64.sh
|
|
|
|
RUN mkdir /opt/cmake
|
|
|
|
RUN sh /cmake-3.22.2-linux-x86_64.sh --prefix=/opt/cmake --skip-license
|
|
|
|
RUN ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
|
|
|
|
RUN cmake --version
|
2021-10-03 16:46:34 +00:00
|
|
|
|
2022-03-15 23:18:23 +00:00
|
|
|
# Entrypoint
|
|
|
|
COPY build-private.sh /root/build.sh
|
2022-04-13 03:29:08 +00:00
|
|
|
ENTRYPOINT ["/root/build.sh", "-deb"]
|