mirror of
https://github.com/LizardByte/Sunshine.git
synced 2024-11-16 23:10:13 +00:00
536df759ae
- remove ubuntu 21.04 from CI (end of life) - adjust matrix strategy for clang.yml - Use lessons learned from RetroArcher on localize.yml, crowdin.yml, and locale.py - Add end of life comments to Dockerfiles - Adjust dependency order in Dockerfiles
47 lines
1.4 KiB
Plaintext
47 lines
1.4 KiB
Plaintext
FROM ubuntu:20.04 AS sunshine-ubuntu_20_04
|
|
|
|
# Ubuntu 20.04 end of life is April 2030
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
ARG TZ="Europe/London"
|
|
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
RUN apt-get update -y && \
|
|
apt-get install -y \
|
|
build-essential \
|
|
cmake \
|
|
git \
|
|
g++-10 \
|
|
libavdevice-dev \
|
|
libboost-filesystem-dev \
|
|
libboost-log-dev \
|
|
libboost-thread-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 \
|
|
wget \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Update gcc alias
|
|
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10
|
|
|
|
# Install CuDA
|
|
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
|
|
|
|
# Entrypoint
|
|
COPY build-private.sh /root/build.sh
|
|
ENTRYPOINT ["/root/build.sh", "-deb"]
|