Dockerfile 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609
  1. # syntax=docker/dockerfile:1.7
  2. # =============================================================================
  3. # Versions
  4. # =============================================================================
  5. # Update these values whenever the NVIDIA GPU Operator driver changes.
  6. ARG NVIDIA_DRIVER_BRANCH=580
  7. ARG NVIDIA_DRIVER_VERSION=580.173.02
  8. ARG NVIDIA_DRIVER_PACKAGE_VERSION=580.173.02-1ubuntu1
  9. ARG SUNSHINE_REF=A9A9277
  10. ARG SUNSHINE_VERSION=v2026.817.185037
  11. ARG BUILD_DEPS_VERSION=v2026.724.203728
  12. ARG NV_CODEC_HEADERS_VERSION=n13.0.19.1
  13. # ============================================================================
  14. # Build du FFmpeg utilisé par Sunshine
  15. # nv-codec-headers volontairement limité à NVENC API 13.0
  16. # ============================================================================
  17. FROM docker.io/library/ubuntu:24.04 AS ffmpeg-build
  18. ARG BUILD_DEPS_VERSION
  19. ARG NV_CODEC_HEADERS_VERSION
  20. ENV DEBIAN_FRONTEND=noninteractive
  21. RUN apt-get update && \
  22. apt-get install -y --no-install-recommends \
  23. autoconf \
  24. automake \
  25. build-essential \
  26. ca-certificates \
  27. cmake \
  28. git \
  29. libass-dev \
  30. libfreetype6-dev \
  31. libgnutls28-dev \
  32. libmp3lame-dev \
  33. libnuma-dev \
  34. libopus-dev \
  35. libsdl2-dev \
  36. libtool \
  37. libvorbis-dev \
  38. libxcb1-dev \
  39. libxcb-shm0-dev \
  40. libxcb-xfixes0-dev \
  41. libx11-xcb-dev \
  42. libxcb-dri3-dev \
  43. make \
  44. meson \
  45. nasm \
  46. ninja-build \
  47. pkg-config \
  48. texinfo \
  49. wget \
  50. zlib1g-dev && \
  51. rm -rf /var/lib/apt/lists/*
  52. RUN git clone \
  53. --branch "${BUILD_DEPS_VERSION}" \
  54. --depth 1 \
  55. --recurse-submodules \
  56. https://github.com/LizardByte/build-deps.git \
  57. /src/build-deps
  58. # Le point important :
  59. # on remplace les nv-codec-headers utilisés pour compiler FFmpeg
  60. # par la dernière release API 13.0.
  61. RUN rm -rf /src/build-deps/third-party/FFmpeg/nv-codec-headers && \
  62. git clone \
  63. --branch "${NV_CODEC_HEADERS_VERSION}" \
  64. --depth 1 \
  65. https://github.com/FFmpeg/nv-codec-headers.git \
  66. /src/build-deps/third-party/FFmpeg/nv-codec-headers
  67. RUN cmake \
  68. -S /src/build-deps \
  69. -B /src/build-deps/build \
  70. -G "Unix Makefiles" \
  71. -DCMAKE_BUILD_TYPE=Release \
  72. -DCMAKE_INSTALL_PREFIX=/opt/build-deps \
  73. -DBUILD_ALL=OFF \
  74. -DBUILD_FFMPEG=ON \
  75. -DBUILD_FFMPEG_NV_CODEC_HEADERS=ON \
  76. -DBUILD_FFMPEG_CUDA_LLVM=OFF \
  77. -DBUILD_TESTS=OFF \
  78. -DBUILD_DOCS=OFF && \
  79. cmake --build /src/build-deps/build --parallel "$(nproc)" && \
  80. cmake --install /src/build-deps/build
  81. # ============================================================================
  82. # Build de Sunshine avec notre FFmpeg
  83. # ============================================================================
  84. FROM docker.io/nvidia/cuda:12.9.2-devel-ubuntu24.04 AS sunshine-build
  85. ARG SUNSHINE_REF
  86. ARG SUNSHINE_VERSION
  87. ENV DEBIAN_FRONTEND=noninteractive
  88. RUN apt-get update && \
  89. apt-get install -y --no-install-recommends \
  90. ca-certificates \
  91. git && \
  92. rm -rf /var/lib/apt/lists/*
  93. RUN git clone \
  94. --filter=blob:none \
  95. https://github.com/LizardByte/Sunshine.git \
  96. /src/sunshine && \
  97. cd /src/sunshine && \
  98. git checkout "${SUNSHINE_REF}" && \
  99. git submodule update --init --recursive --depth 1
  100. # Installation des dépendances de compilation de Sunshine.
  101. # --skip-cuda désactive NVFBC/CUDA dans Sunshine, PAS NVENC via FFmpeg.
  102. RUN cd /src/sunshine && \
  103. ./scripts/linux_build.sh \
  104. --sudo-off \
  105. --skip-cuda \
  106. --step=deps
  107. # Remplacement du FFmpeg précompilé de LizardByte par le nôtre.
  108. COPY --from=ffmpeg-build /opt/build-deps/ffmpeg /tmp/custom-ffmpeg
  109. RUN cd /src/sunshine && \
  110. BRANCH=master \
  111. BUILD_VERSION="${SUNSHINE_VERSION}" \
  112. COMMIT="${SUNSHINE_REF}" \
  113. ./scripts/linux_build.sh \
  114. --sudo-off \
  115. --step=cmake
  116. RUN rm -rf /src/sunshine/build/_deps/ffmpeg && \
  117. mkdir -p /src/sunshine/build/_deps/ffmpeg && \
  118. cp -a \
  119. /tmp/custom-ffmpeg/. \
  120. /src/sunshine/build/_deps/ffmpeg/
  121. RUN cd /src/sunshine && \
  122. ./scripts/linux_build.sh \
  123. --sudo-off \
  124. --step=build && \
  125. ./scripts/linux_build.sh \
  126. --sudo-off \
  127. --step=package && \
  128. cp /src/sunshine/build/cpack_artifacts/Sunshine.deb /sunshine.deb
  129. # =============================================================================
  130. # Main image
  131. # =============================================================================
  132. FROM docker.io/library/ubuntu:24.04
  133. ARG NVIDIA_DRIVER_BRANCH
  134. ARG NVIDIA_DRIVER_VERSION
  135. ARG NVIDIA_DRIVER_PACKAGE_VERSION
  136. ARG USER_NAME=ubuntu
  137. ARG USER_UID=1000
  138. ARG USER_GID=1000
  139. ENV DEBIAN_FRONTEND=noninteractive \
  140. HOME=/home/ubuntu \
  141. USER=ubuntu \
  142. DISPLAY=:20 \
  143. DISPLAY_SIZEW=1920 \
  144. DISPLAY_SIZEH=1080 \
  145. DISPLAY_REFRESH=120 \
  146. DISPLAY_DPI=96 \
  147. DISPLAY_CDEPTH=24 \
  148. VIDEO_PORT=HDMI-0 \
  149. TZ=Europe/Paris \
  150. LANG=fr_FR.UTF-8 \
  151. LANGUAGE=fr_FR:fr \
  152. LC_ALL=fr_FR.UTF-8 \
  153. XDG_RUNTIME_DIR=/tmp/runtime-ubuntu \
  154. PIPEWIRE_RUNTIME_DIR=/tmp/runtime-ubuntu \
  155. PULSE_RUNTIME_PATH=/tmp/runtime-ubuntu/pulse \
  156. PULSE_SERVER=unix:/tmp/runtime-ubuntu/pulse/native \
  157. NVIDIA_VISIBLE_DEVICES=all \
  158. NVIDIA_DRIVER_CAPABILITIES=all \
  159. EXPECTED_NVIDIA_DRIVER_VERSION=${NVIDIA_DRIVER_VERSION} \
  160. NVIDIA_I386_PACKAGE_VERSION=${NVIDIA_DRIVER_PACKAGE_VERSION}
  161. SHELL ["/bin/bash", "-o", "pipefail", "-c"]
  162. USER root
  163. # =============================================================================
  164. # Base desktop / gaming environment
  165. # =============================================================================
  166. RUN dpkg --add-architecture i386 \
  167. && apt-get update \
  168. && apt-get install --no-install-recommends -y \
  169. btop fonts-noto-cjk fonts-ubuntu mousepad nano ristretto thunar \
  170. ubuntu-wallpapers \
  171. adwaita-icon-theme \
  172. elementary-xfce-icon-theme \
  173. greybird-gtk-theme \
  174. hicolor-icon-theme \
  175. humanity-icon-theme \
  176. keyboard-configuration \
  177. tango-icon-theme \
  178. xfce4-goodies \
  179. xfce4-notifyd \
  180. xfce4-pulseaudio-plugin \
  181. xfonts-base \
  182. xfonts-scalable \
  183. alsa-utils \
  184. ca-certificates \
  185. curl \
  186. dbus \
  187. dbus-user-session \
  188. dbus-x11 \
  189. file \
  190. fonts-dejavu \
  191. fonts-liberation \
  192. fonts-noto \
  193. fonts-noto-color-emoji \
  194. kmod \
  195. libasound2-plugins \
  196. libcap2-bin \
  197. libegl1 \
  198. libgbm1 \
  199. libgl1 \
  200. libglvnd0 \
  201. libglx0 \
  202. libpciaccess0 \
  203. libpulse0 \
  204. libvulkan1 \
  205. libx11-6 \
  206. libx11-xcb1 \
  207. libxdamage1 \
  208. libxext6 \
  209. libxfixes3 \
  210. libxinerama1 \
  211. libxrandr2 \
  212. libxss1 \
  213. libxtst6 \
  214. locales \
  215. mesa-utils \
  216. pciutils \
  217. pipewire \
  218. pipewire-pulse \
  219. procps \
  220. psmisc \
  221. pulseaudio-utils \
  222. sudo \
  223. supervisor \
  224. tzdata \
  225. udev \
  226. vulkan-tools \
  227. wireplumber \
  228. x11-utils \
  229. x11-xserver-utils \
  230. xauth \
  231. xcvt \
  232. xdg-user-dirs \
  233. xdg-utils \
  234. xfce4 \
  235. xfce4-terminal \
  236. xkb-data \
  237. xserver-xorg-core \
  238. xserver-xorg-input-libinput \
  239. xserver-xorg-legacy \
  240. xz-utils \
  241. neofetch \
  242. wmctrl \
  243. && sed -i \
  244. -e 's/^# *fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' \
  245. -e 's/^# *en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' \
  246. /etc/locale.gen \
  247. && locale-gen \
  248. && apt-get clean \
  249. && rm -rf \
  250. /var/lib/apt/lists/* \
  251. /var/cache/apt/* \
  252. /var/cache/debconf/* \
  253. /tmp/* \
  254. /var/tmp/*
  255. # =============================================================================
  256. # Desktop user
  257. # =============================================================================
  258. RUN set -eux; \
  259. if ! getent group "${USER_GID}" >/dev/null; then \
  260. groupadd --gid "${USER_GID}" "${USER_NAME}"; \
  261. fi; \
  262. if ! id -u "${USER_NAME}" >/dev/null 2>&1; then \
  263. useradd \
  264. --uid "${USER_UID}" \
  265. --gid "${USER_GID}" \
  266. --create-home \
  267. --shell /bin/bash \
  268. "${USER_NAME}"; \
  269. else \
  270. usermod --shell /bin/bash "${USER_NAME}"; \
  271. fi; \
  272. for group in \
  273. audio \
  274. games \
  275. input \
  276. render \
  277. tty \
  278. video; \
  279. do \
  280. getent group "${group}" >/dev/null \
  281. && usermod -aG "${group}" "${USER_NAME}" \
  282. || true; \
  283. done; \
  284. echo "${USER_NAME} ALL=(ALL:ALL) NOPASSWD: ALL" \
  285. > "/etc/sudoers.d/${USER_NAME}"; \
  286. chmod 0440 "/etc/sudoers.d/${USER_NAME}"; \
  287. install \
  288. -d \
  289. -o "${USER_UID}" \
  290. -g "${USER_GID}" \
  291. -m 0700 \
  292. /tmp/runtime-ubuntu; \
  293. install \
  294. -d \
  295. -o "${USER_UID}" \
  296. -g "${USER_GID}" \
  297. /home/${USER_NAME}/.config/sunshine \
  298. /games
  299. # =============================================================================
  300. # NVIDIA repository + nvidia-xconfig
  301. #
  302. # Only the userspace Xorg configuration utility is installed here.
  303. # The kernel driver remains fully managed by the NVIDIA GPU Operator.
  304. # =============================================================================
  305. RUN curl -fsSLO \
  306. https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb \
  307. && dpkg -i cuda-keyring_1.1-1_all.deb \
  308. && rm -f cuda-keyring_1.1-1_all.deb \
  309. && apt-get update \
  310. && apt-get install --no-install-recommends -y \
  311. "nvidia-xconfig=${NVIDIA_DRIVER_PACKAGE_VERSION}" \
  312. && nvidia-xconfig --version \
  313. && apt-get clean \
  314. && rm -rf \
  315. /var/lib/apt/lists/* \
  316. /var/cache/apt/*
  317. # =============================================================================
  318. # NVIDIA Xorg driver modules
  319. #
  320. # Extract only the Xorg-side NVIDIA modules matching the host driver.
  321. # Do not install the whole amd64 NVIDIA userspace stack with APT.
  322. # =============================================================================
  323. RUN cd /tmp \
  324. && apt-get update \
  325. && apt-get download \
  326. "xserver-xorg-video-nvidia-${NVIDIA_DRIVER_BRANCH}=${NVIDIA_DRIVER_PACKAGE_VERSION}" \
  327. && mkdir -p /tmp/nvidia-xorg \
  328. && dpkg-deb -x \
  329. "xserver-xorg-video-nvidia-${NVIDIA_DRIVER_BRANCH}_${NVIDIA_DRIVER_PACKAGE_VERSION}_amd64.deb" \
  330. /tmp/nvidia-xorg \
  331. && install -D -m 0755 \
  332. /tmp/nvidia-xorg/usr/lib/xorg/modules/drivers/nvidia_drv.so \
  333. /usr/lib/xorg/modules/drivers/nvidia_drv.so \
  334. && cp -a \
  335. /tmp/nvidia-xorg/usr/lib/xorg/modules/extensions/libglxserver_nvidia.so* \
  336. /usr/lib/xorg/modules/extensions/ \
  337. && rm -rf \
  338. /tmp/nvidia-xorg \
  339. /tmp/xserver-xorg-video-nvidia-*.deb \
  340. /var/lib/apt/lists/*
  341. # =============================================================================
  342. # NVIDIA GLVND / Vulkan configuration
  343. #
  344. # Actual 64-bit NVIDIA libraries are injected at runtime by the GPU Operator /
  345. # NVIDIA Container Toolkit.
  346. # =============================================================================
  347. RUN printf '%s\n' \
  348. '/usr/local/nvidia/lib' \
  349. '/usr/local/nvidia/lib64' \
  350. > /etc/ld.so.conf.d/nvidia.conf \
  351. && install -d -m 0755 \
  352. /etc/vulkan/icd.d \
  353. /usr/share/glvnd/egl_vendor.d \
  354. && cat > /etc/vulkan/icd.d/nvidia_icd.json <<'EOF'
  355. {
  356. "file_format_version": "1.0.0",
  357. "ICD": {
  358. "library_path": "libGLX_nvidia.so.0",
  359. "api_version": "1.3.0"
  360. }
  361. }
  362. EOF
  363. RUN cat > /usr/share/glvnd/egl_vendor.d/10_nvidia.json <<'EOF'
  364. {
  365. "file_format_version": "1.0.0",
  366. "ICD": {
  367. "library_path": "libEGL_nvidia.so.0"
  368. }
  369. }
  370. EOF
  371. # =============================================================================
  372. # Sunshine
  373. # =============================================================================
  374. COPY --from=sunshine-build /sunshine.deb /tmp/sunshine.deb
  375. RUN apt-get update \
  376. && apt-get install --no-install-recommends -y \
  377. /tmp/sunshine.deb \
  378. && setcap cap_sys_admin,cap_dac_override,cap_sys_nice=ep \
  379. "$(command -v sunshine)" \
  380. && rm -f /tmp/sunshine.deb \
  381. && apt-get clean \
  382. && rm -rf \
  383. /var/lib/apt/lists/* \
  384. /var/cache/apt/*
  385. # =============================================================================
  386. # Steam + 32-bit Linux gaming runtime
  387. # =============================================================================
  388. RUN dpkg --add-architecture i386 \
  389. && apt-get update \
  390. && apt-get install --no-install-recommends -y \
  391. ca-certificates \
  392. curl \
  393. && curl -fsSL \
  394. https://repo.steampowered.com/steam/archive/stable/steam.gpg \
  395. -o /usr/share/keyrings/steam.gpg \
  396. && printf '%s\n' \
  397. 'deb [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] https://repo.steampowered.com/steam/ stable steam' \
  398. > /etc/apt/sources.list.d/steam-bootstrap.list \
  399. && apt-get update \
  400. && apt-get install --no-install-recommends -y \
  401. steam-launcher \
  402. steam-libs-amd64 \
  403. steam-libs-i386 \
  404. libegl1:amd64 \
  405. libegl1:i386 \
  406. libgbm1:amd64 \
  407. libgbm1:i386 \
  408. libgl1:amd64 \
  409. libgl1:i386 \
  410. libgl1-mesa-dri:amd64 \
  411. libgl1-mesa-dri:i386 \
  412. libglx-mesa0:amd64 \
  413. libglx-mesa0:i386 \
  414. libvulkan1:amd64 \
  415. libvulkan1:i386 \
  416. xdg-desktop-portal \
  417. xdg-desktop-portal-gtk \
  418. && rm -f /etc/apt/sources.list.d/steam-bootstrap.list \
  419. && apt-get clean \
  420. && rm -rf \
  421. /var/lib/apt/lists/* \
  422. /var/cache/apt/*
  423. # =============================================================================
  424. # Non-snap Firefox
  425. # =============================================================================
  426. RUN install -d -m 0755 /etc/apt/keyrings \
  427. && curl -fsSL https://packages.mozilla.org/apt/repo-signing-key.gpg \
  428. -o /etc/apt/keyrings/packages.mozilla.org.asc \
  429. && echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" \
  430. > /etc/apt/sources.list.d/mozilla.list \
  431. && printf '%s\n' \
  432. 'Package: *' \
  433. 'Pin: origin packages.mozilla.org' \
  434. 'Pin-Priority: 1000' \
  435. > /etc/apt/preferences.d/mozilla \
  436. && apt-get update \
  437. && apt-get install --no-install-recommends -y \
  438. firefox \
  439. firefox-l10n-fr \
  440. && apt-get clean
  441. # =============================================================================
  442. # NVIDIA 32-bit userspace
  443. #
  444. # The GPU Operator currently does not provide the compat32 libraries required
  445. # by 32-bit OpenGL applications and Proton/DXVK.
  446. #
  447. # Install the exact userspace version matching the host driver, then keep a
  448. # protected copy under /opt. The NVIDIA runtime can remove/mask the files in
  449. # /usr/lib/i386-linux-gnu when the pod starts; sunshine-entrypoint.sh restores
  450. # them afterwards.
  451. # =============================================================================
  452. RUN dpkg --add-architecture i386 \
  453. && apt-get update \
  454. && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
  455. "libnvidia-common-${NVIDIA_DRIVER_BRANCH}=${NVIDIA_DRIVER_PACKAGE_VERSION}" \
  456. "libnvidia-gpucomp-${NVIDIA_DRIVER_BRANCH}:i386=${NVIDIA_DRIVER_PACKAGE_VERSION}" \
  457. "libnvidia-decode-${NVIDIA_DRIVER_BRANCH}:i386=${NVIDIA_DRIVER_PACKAGE_VERSION}" \
  458. "libnvidia-compute-${NVIDIA_DRIVER_BRANCH}:i386=${NVIDIA_DRIVER_PACKAGE_VERSION}" \
  459. "libnvidia-gl-${NVIDIA_DRIVER_BRANCH}:i386=${NVIDIA_DRIVER_PACKAGE_VERSION}" \
  460. && mkdir -p /opt/nvidia-i386 \
  461. && for file in $( \
  462. dpkg -L \
  463. "libnvidia-gl-${NVIDIA_DRIVER_BRANCH}:i386" \
  464. "libnvidia-compute-${NVIDIA_DRIVER_BRANCH}:i386" \
  465. "libnvidia-decode-${NVIDIA_DRIVER_BRANCH}:i386" \
  466. "libnvidia-gpucomp-${NVIDIA_DRIVER_BRANCH}:i386" \
  467. | grep '^/usr/lib/i386-linux-gnu/' \
  468. | sort -u \
  469. ); do \
  470. if [[ -e "${file}" || -L "${file}" ]]; then \
  471. cp -a --parents "${file}" /opt/nvidia-i386/; \
  472. fi; \
  473. done \
  474. && test -e \
  475. /opt/nvidia-i386/usr/lib/i386-linux-gnu/libGLX_nvidia.so.0 \
  476. && test -e \
  477. "/opt/nvidia-i386/usr/lib/i386-linux-gnu/libnvidia-glcore.so.${NVIDIA_DRIVER_VERSION}" \
  478. && ldconfig \
  479. && apt-get clean \
  480. && rm -rf \
  481. /var/lib/apt/lists/* \
  482. /var/cache/apt/*
  483. # Keep APT package indexes available for Steam's dependency checker.
  484. RUN apt-get update \
  485. && apt-get clean
  486. # =============================================================================
  487. # Runtime scripts
  488. # =============================================================================
  489. COPY desktop-entrypoint.sh /etc/desktop-entrypoint.sh
  490. COPY sunshine-entrypoint.sh /etc/sunshine-entrypoint.sh
  491. COPY supervisord.conf /etc/supervisord.conf
  492. COPY --chmod=0755 scripts/ /usr/local/bin/
  493. RUN sed -i 's/\r$//' \
  494. /etc/desktop-entrypoint.sh \
  495. /etc/sunshine-entrypoint.sh \
  496. /etc/supervisord.conf \
  497. && chmod 0755 \
  498. /etc/desktop-entrypoint.sh \
  499. /etc/sunshine-entrypoint.sh \
  500. && chmod 0644 \
  501. /etc/supervisord.conf
  502. # =============================================================================
  503. # Final filesystem permissions
  504. # =============================================================================
  505. RUN chown -R \
  506. "${USER_UID}:${USER_GID}" \
  507. "/home/${USER_NAME}" \
  508. /tmp/runtime-ubuntu
  509. # =============================================================================
  510. # Sanity checks
  511. # =============================================================================
  512. RUN command -v \
  513. steam \
  514. && command -v \
  515. nvidia-xconfig \
  516. && command -v \
  517. supervisord \
  518. && command -v \
  519. pipewire \
  520. && command -v \
  521. wireplumber \
  522. && command -v \
  523. Xorg \
  524. && command -v \
  525. xfce4-session \
  526. && test -x \
  527. /etc/sunshine-entrypoint.sh \
  528. && test -x \
  529. /etc/desktop-entrypoint.sh
  530. # =============================================================================
  531. # Runtime
  532. # =============================================================================
  533. USER 1000:1000
  534. WORKDIR /home/ubuntu
  535. STOPSIGNAL SIGTERM
  536. ENTRYPOINT ["/etc/sunshine-entrypoint.sh"]