Dockerfile 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  1. # This Source Code Form is subject to the terms of the Mozilla Public
  2. # License, v. 2.0. If a copy of the MPL was not distributed with this
  3. # file, You can obtain one at https://mozilla.org/MPL/2.0/.
  4. # Ubuntu release versions 22.04, and 20.04 are supported
  5. ARG UBUNTU_RELEASE=22.04
  6. ARG CUDA_VERSION=11.7.1
  7. FROM nvcr.io/nvidia/cuda:${CUDA_VERSION}-runtime-ubuntu${UBUNTU_RELEASE}
  8. LABEL maintainer "https://github.com/ehfd,https://github.com/danisla"
  9. ARG UBUNTU_RELEASE
  10. ARG CUDA_VERSION
  11. # Make all NVIDIA GPUs visible by default
  12. ARG NVIDIA_VISIBLE_DEVICES=all
  13. # Use noninteractive mode to skip confirmation when installing packages
  14. ARG DEBIAN_FRONTEND=noninteractive
  15. # All NVIDIA driver capabilities should preferably be used, check `NVIDIA_DRIVER_CAPABILITIES` inside the container if things do not work
  16. ENV NVIDIA_DRIVER_CAPABILITIES all
  17. # Disable VSYNC for NVIDIA GPUs
  18. ENV __GL_SYNC_TO_VBLANK 0
  19. # Expose CUDA libraries
  20. ENV LD_LIBRARY_PATH /usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
  21. # Enable AppImage execution in a container
  22. ENV APPIMAGE_EXTRACT_AND_RUN 1
  23. # System defaults that should not be changed
  24. ENV DISPLAY :0
  25. ENV XDG_RUNTIME_DIR /tmp/runtime-user
  26. ENV PULSE_SERVER unix:/run/pulse/native
  27. # Default environment variables (password is "mypasswd")
  28. ENV TZ UTC
  29. ENV SIZEW 1920
  30. ENV SIZEH 1080
  31. ENV REFRESH 60
  32. ENV DPI 96
  33. ENV CDEPTH 24
  34. ENV VIDEO_PORT DFP
  35. ENV PASSWD mypasswd
  36. ENV NOVNC_ENABLE false
  37. ENV WEBRTC_ENCODER nvh264enc
  38. ENV WEBRTC_ENABLE_RESIZE false
  39. ENV ENABLE_BASIC_AUTH true
  40. # Set versions for components that should be manually checked before upgrading, other component versions are automatically determined by fetching the version online
  41. ARG NOVNC_VERSION=1.4.0
  42. # Install locales to prevent X11 errors
  43. RUN apt-get clean && \
  44. apt-get update && apt-get install --no-install-recommends -y locales && \
  45. rm -rf /var/lib/apt/lists/* && \
  46. locale-gen en_US.UTF-8
  47. ENV LANG en_US.UTF-8
  48. ENV LANGUAGE en_US:en
  49. ENV LC_ALL en_US.UTF-8
  50. # Install Xorg and other important libraries or packages
  51. RUN dpkg --add-architecture i386 && \
  52. apt-get update && apt-get install --no-install-recommends -y \
  53. software-properties-common \
  54. alsa-base \
  55. alsa-utils \
  56. apt-transport-https \
  57. apt-utils \
  58. build-essential \
  59. ca-certificates \
  60. ssl-cert \
  61. cups-browsed \
  62. cups-bsd \
  63. cups-common \
  64. cups-filters \
  65. cups-pdf \
  66. curl \
  67. file \
  68. wget \
  69. bzip2 \
  70. gzip \
  71. xz-utils \
  72. unar \
  73. rar \
  74. unrar \
  75. zip \
  76. unzip \
  77. zstd \
  78. gcc \
  79. git \
  80. jq \
  81. make \
  82. python3 \
  83. python3-cups \
  84. python3-numpy \
  85. mlocate \
  86. nano \
  87. vim \
  88. htop \
  89. fakeroot \
  90. fonts-dejavu \
  91. fonts-freefont-ttf \
  92. fonts-hack \
  93. fonts-liberation \
  94. fonts-noto \
  95. fonts-noto-cjk \
  96. fonts-noto-cjk-extra \
  97. fonts-noto-color-emoji \
  98. fonts-noto-extra \
  99. fonts-noto-ui-extra \
  100. fonts-noto-hinted \
  101. fonts-noto-mono \
  102. fonts-noto-unhinted \
  103. fonts-opensymbol \
  104. fonts-symbola \
  105. fonts-ubuntu \
  106. lame \
  107. less \
  108. libavcodec-extra \
  109. libpulse0 \
  110. pulseaudio \
  111. supervisor \
  112. net-tools \
  113. libglvnd-dev \
  114. libglvnd-dev:i386 \
  115. libgl1-mesa-dev \
  116. libgl1-mesa-dev:i386 \
  117. libegl1-mesa-dev \
  118. libegl1-mesa-dev:i386 \
  119. libgles2-mesa-dev \
  120. libgles2-mesa-dev:i386 \
  121. libglvnd0 \
  122. libglvnd0:i386 \
  123. libgl1 \
  124. libgl1:i386 \
  125. libglx0 \
  126. libglx0:i386 \
  127. libegl1 \
  128. libegl1:i386 \
  129. libgles2 \
  130. libgles2:i386 \
  131. libglu1 \
  132. libglu1:i386 \
  133. libsm6 \
  134. libsm6:i386 \
  135. pkg-config \
  136. packagekit-tools \
  137. mesa-utils \
  138. mesa-utils-extra \
  139. va-driver-all \
  140. va-driver-all:i386 \
  141. i965-va-driver-shaders \
  142. i965-va-driver-shaders:i386 \
  143. intel-media-va-driver-non-free \
  144. intel-media-va-driver-non-free:i386 \
  145. libva2 \
  146. libva2:i386 \
  147. vainfo \
  148. vdpau-driver-all \
  149. vdpau-driver-all:i386 \
  150. vdpauinfo \
  151. xserver-xorg-input-all \
  152. xserver-xorg-input-wacom \
  153. xserver-xorg-video-all \
  154. xserver-xorg-video-intel \
  155. xserver-xorg-video-qxl \
  156. vulkan-tools \
  157. mesa-vulkan-drivers \
  158. mesa-vulkan-drivers:i386 \
  159. libvulkan-dev \
  160. libvulkan-dev:i386 \
  161. libxau6 \
  162. libxau6:i386 \
  163. libxdmcp6 \
  164. libxdmcp6:i386 \
  165. libxcb1 \
  166. libxcb1:i386 \
  167. libxext6 \
  168. libxext6:i386 \
  169. libx11-6 \
  170. libx11-6:i386 \
  171. libxv1 \
  172. libxv1:i386 \
  173. libxtst6 \
  174. libxtst6:i386 \
  175. xdg-user-dirs \
  176. xdg-utils \
  177. dbus-user-session \
  178. dbus-x11 \
  179. libdbus-c++-1-0v5 \
  180. xkb-data \
  181. x11-xkb-utils \
  182. x11-xserver-utils \
  183. x11-utils \
  184. x11-apps \
  185. xauth \
  186. xbitmaps \
  187. xfonts-base \
  188. xfonts-scalable \
  189. xinit \
  190. xsettingsd \
  191. libxrandr-dev \
  192. # Install essential Xorg and NVIDIA packages, packages above this line should be the same between docker-nvidia-glx-desktop and docker-nvidia-egl-desktop
  193. kmod \
  194. libc6-dev \
  195. libc6:i386 \
  196. libpci3 \
  197. libelf-dev \
  198. xorg && \
  199. rm -rf /var/lib/apt/lists/* && \
  200. # Configure EGL manually
  201. mkdir -p /usr/share/glvnd/egl_vendor.d/ && \
  202. echo "{\n\
  203. \"file_format_version\" : \"1.0.0\",\n\
  204. \"ICD\": {\n\
  205. \"library_path\": \"libEGL_nvidia.so.0\"\n\
  206. }\n\
  207. }" > /usr/share/glvnd/egl_vendor.d/10_nvidia.json
  208. # Anything below this line should be always kept the same between docker-nvidia-glx-desktop and docker-nvidia-egl-desktop
  209. # Install KDE and other GUI packages
  210. ENV XDG_CURRENT_DESKTOP KDE
  211. ENV KWIN_COMPOSE N
  212. ENV KWIN_X11_NO_SYNC_TO_VBLANK 1
  213. # Use sudoedit to change protected files instead of using sudo on kate
  214. ENV SUDO_EDITOR kate
  215. RUN mkdir -pm755 /etc/apt/preferences.d && \
  216. echo "Package: firefox*\n\
  217. Pin: version 1:1snap*\n\
  218. Pin-Priority: -1" > /etc/apt/preferences.d/firefox-nosnap && \
  219. # Add Mozilla Firefox PPA
  220. mkdir -pm755 /etc/apt/trusted.gpg.d && curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x0AB215679C571D1C8325275B9BDB3D89CE49EC21" | gpg --dearmor -o /etc/apt/trusted.gpg.d/mozillateam-ubuntu-ppa.gpg && \
  221. mkdir -pm755 /etc/apt/sources.list.d && echo "deb https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu $(grep UBUNTU_CODENAME= /etc/os-release | cut -d= -f2) main" > "/etc/apt/sources.list.d/mozillateam-ubuntu-ppa-$(grep UBUNTU_CODENAME= /etc/os-release | cut -d= -f2).list" && \
  222. apt-get update && apt-get install --no-install-recommends -y \
  223. kde-plasma-desktop \
  224. adwaita-icon-theme-full \
  225. appmenu-gtk3-module \
  226. ark \
  227. aspell \
  228. aspell-en \
  229. breeze \
  230. breeze-cursor-theme \
  231. breeze-gtk-theme \
  232. breeze-icon-theme \
  233. debconf-kde-helper \
  234. desktop-file-utils \
  235. dolphin \
  236. dolphin-plugins \
  237. dbus-x11 \
  238. enchant-2 \
  239. fcitx \
  240. fcitx-frontend-gtk2 \
  241. fcitx-frontend-gtk3 \
  242. fcitx-frontend-qt5 \
  243. fcitx-module-dbus \
  244. fcitx-module-kimpanel \
  245. fcitx-module-lua \
  246. fcitx-module-x11 \
  247. fcitx-tools \
  248. filelight \
  249. frameworkintegration \
  250. gwenview \
  251. haveged \
  252. hunspell \
  253. im-config \
  254. kate \
  255. kcalc \
  256. kcharselect \
  257. kdeadmin \
  258. kde-config-fcitx \
  259. kde-config-gtk-style \
  260. kde-config-gtk-style-preview \
  261. kdeconnect \
  262. kdegraphics-thumbnailers \
  263. kde-spectacle \
  264. kdf \
  265. kdialog \
  266. kget \
  267. kimageformat-plugins \
  268. kinfocenter \
  269. kio \
  270. kio-extras \
  271. kmag \
  272. kmenuedit \
  273. kmix \
  274. kmousetool \
  275. kmouth \
  276. ksshaskpass \
  277. ktimer \
  278. kwayland-integration \
  279. kwin-addons \
  280. kwin-x11 \
  281. libdbusmenu-glib4 \
  282. libdbusmenu-gtk3-4 \
  283. libgail-common \
  284. libgdk-pixbuf2.0-bin \
  285. libgtk2.0-bin \
  286. libgtk-3-bin \
  287. libkf5baloowidgets-bin \
  288. libkf5dbusaddons-bin \
  289. libkf5iconthemes-bin \
  290. libkf5kdelibs4support5-bin \
  291. libkf5khtml-bin \
  292. libkf5parts-plugins \
  293. libqt5multimedia5-plugins \
  294. librsvg2-common \
  295. media-player-info \
  296. okular \
  297. okular-extra-backends \
  298. partitionmanager \
  299. plasma-browser-integration \
  300. plasma-calendar-addons \
  301. plasma-dataengines-addons \
  302. plasma-discover \
  303. plasma-integration \
  304. plasma-runners-addons \
  305. plasma-widgets-addons \
  306. policykit-desktop-privileges \
  307. polkit-kde-agent-1 \
  308. print-manager \
  309. qapt-deb-installer \
  310. qml-module-org-kde-runnermodel \
  311. qml-module-org-kde-qqc2desktopstyle \
  312. qml-module-qtgraphicaleffects \
  313. qml-module-qtquick-xmllistmodel \
  314. qt5-gtk-platformtheme \
  315. qt5-image-formats-plugins \
  316. qt5-style-plugins \
  317. qtspeech5-flite-plugin \
  318. qtvirtualkeyboard-plugin \
  319. software-properties-qt \
  320. sonnet-plugins \
  321. sweeper \
  322. systemsettings \
  323. ubuntu-drivers-common \
  324. vlc \
  325. vlc-l10n \
  326. vlc-plugin-access-extra \
  327. vlc-plugin-notify \
  328. vlc-plugin-samba \
  329. vlc-plugin-skins2 \
  330. vlc-plugin-video-splitter \
  331. vlc-plugin-visualization \
  332. xdg-desktop-portal-kde \
  333. xdg-user-dirs \
  334. firefox \
  335. pavucontrol-qt \
  336. transmission-qt && \
  337. apt-get install --install-recommends -y \
  338. libreoffice \
  339. libreoffice-kf5 \
  340. libreoffice-plasma \
  341. libreoffice-style-breeze && \
  342. rm -rf /var/lib/apt/lists/* && \
  343. # Ensure Firefox is the default web browser
  344. update-alternatives --set x-www-browser /usr/bin/firefox && \
  345. # Fix KDE startup permissions issues in containers
  346. cp -f /usr/lib/x86_64-linux-gnu/libexec/kf5/start_kdeinit /tmp/ && \
  347. rm -f /usr/lib/x86_64-linux-gnu/libexec/kf5/start_kdeinit && \
  348. cp -r /tmp/start_kdeinit /usr/lib/x86_64-linux-gnu/libexec/kf5/start_kdeinit && \
  349. rm -f /tmp/start_kdeinit && \
  350. # KDE disable screen lock, double-click to open instead of single-click
  351. echo "[Daemon]\n\
  352. Autolock=false\n\
  353. LockOnResume=false" > /etc/xdg/kscreenlockerrc && \
  354. echo "[KDE]\n\
  355. SingleClick=false\n\
  356. \n\
  357. [KDE Action Restrictions]\n\
  358. action/lock_screen=false\n\
  359. logout=false" > /etc/xdg/kdeglobals
  360. # Wine, Winetricks, Lutris, and PlayOnLinux, this process must be consistent with https://wiki.winehq.org/Ubuntu
  361. ARG WINE_BRANCH=staging
  362. RUN mkdir -pm755 /etc/apt/keyrings && curl -fsSL -o /etc/apt/keyrings/winehq-archive.key "https://dl.winehq.org/wine-builds/winehq.key" && \
  363. curl -fsSL -o "/etc/apt/sources.list.d/winehq-$(grep UBUNTU_CODENAME= /etc/os-release | cut -d= -f2).sources" "https://dl.winehq.org/wine-builds/ubuntu/dists/$(grep UBUNTU_CODENAME= /etc/os-release | cut -d= -f2)/winehq-$(grep UBUNTU_CODENAME= /etc/os-release | cut -d= -f2).sources" && \
  364. apt-get update && apt-get install --install-recommends -y \
  365. winehq-${WINE_BRANCH} && \
  366. apt-get install --no-install-recommends -y \
  367. q4wine \
  368. playonlinux && \
  369. LUTRIS_VERSION=$(curl -fsSL "https://api.github.com/repos/lutris/lutris/releases/latest" | jq -r '.tag_name' | sed 's/[^0-9\.\-]*//g') && \
  370. curl -fsSL -O "https://github.com/lutris/lutris/releases/download/v${LUTRIS_VERSION}/lutris_${LUTRIS_VERSION}_all.deb" && \
  371. apt-get install --no-install-recommends -y ./lutris_${LUTRIS_VERSION}_all.deb && rm -f "./lutris_${LUTRIS_VERSION}_all.deb" && \
  372. rm -rf /var/lib/apt/lists/* && \
  373. curl -fsSL -o /usr/bin/winetricks "https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks" && \
  374. chmod 755 /usr/bin/winetricks && \
  375. curl -fsSL -o /usr/share/bash-completion/completions/winetricks "https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks.bash-completion"
  376. # Install latest Selkies-GStreamer (https://github.com/selkies-project/selkies-gstreamer) build, Python application, and web application, should be consistent with selkies-gstreamer documentation
  377. RUN apt-get update && apt-get install --no-install-recommends -y \
  378. # GStreamer dependencies
  379. python3-pip \
  380. python3-dev \
  381. python3-gi \
  382. python3-setuptools \
  383. python3-wheel \
  384. udev \
  385. wmctrl \
  386. jq \
  387. gdebi-core \
  388. libgdk-pixbuf2.0-0 \
  389. libgtk2.0-bin \
  390. libgl-dev \
  391. libgles-dev \
  392. libglvnd-dev \
  393. libgudev-1.0-0 \
  394. xclip \
  395. x11-utils \
  396. xdotool \
  397. x11-xserver-utils \
  398. xserver-xorg-core \
  399. wayland-protocols \
  400. libwayland-dev \
  401. libwayland-egl1 \
  402. libx11-xcb1 \
  403. libxkbcommon0 \
  404. libxdamage1 \
  405. libsoup2.4-1 \
  406. libsoup-gnome2.4-1 \
  407. libsrtp2-1 \
  408. lame \
  409. libopus0 \
  410. libwebrtc-audio-processing1 \
  411. pulseaudio \
  412. libpulse0 \
  413. libcairo-gobject2 \
  414. libpangocairo-1.0-0 \
  415. libgirepository-1.0-1 \
  416. libopenjp2-7 \
  417. libjpeg-dev \
  418. libwebp-dev \
  419. libvpx-dev \
  420. zlib1g-dev \
  421. x264 \
  422. # AMD/Intel graphics driver dependencies
  423. va-driver-all \
  424. i965-va-driver-shaders \
  425. intel-media-va-driver-non-free \
  426. libva2 \
  427. vainfo \
  428. intel-gpu-tools \
  429. radeontop && \
  430. if [ "${UBUNTU_RELEASE}" \> "20.04" ]; then apt-get install --no-install-recommends -y xcvt; fi && \
  431. rm -rf /var/lib/apt/lists/* && \
  432. cd /opt && \
  433. # Automatically fetch the latest selkies-gstreamer version and install the components
  434. SELKIES_VERSION=$(curl -fsSL "https://api.github.com/repos/selkies-project/selkies-gstreamer/releases/latest" | jq -r '.tag_name' | sed 's/[^0-9\.\-]*//g') && \
  435. curl -fsSL "https://github.com/selkies-project/selkies-gstreamer/releases/download/v${SELKIES_VERSION}/selkies-gstreamer-v${SELKIES_VERSION}-ubuntu${UBUNTU_RELEASE}.tgz" | tar -zxf - && \
  436. curl -O -fsSL "https://github.com/selkies-project/selkies-gstreamer/releases/download/v${SELKIES_VERSION}/selkies_gstreamer-${SELKIES_VERSION}-py3-none-any.whl" && pip3 install "selkies_gstreamer-${SELKIES_VERSION}-py3-none-any.whl" && rm -f "selkies_gstreamer-${SELKIES_VERSION}-py3-none-any.whl" && \
  437. curl -fsSL "https://github.com/selkies-project/selkies-gstreamer/releases/download/v${SELKIES_VERSION}/selkies-gstreamer-web-v${SELKIES_VERSION}.tgz" | tar -zxf - && \
  438. curl -O -fsSL "https://github.com/selkies-project/selkies-gstreamer/releases/download/v${SELKIES_VERSION}/selkies-js-interposer-v${SELKIES_VERSION}-ubuntu${UBUNTU_RELEASE}.deb" && apt-get update && apt-get install --no-install-recommends -y "./selkies-js-interposer-v${SELKIES_VERSION}-ubuntu${UBUNTU_RELEASE}.deb" && rm -f "selkies-js-interposer-v${SELKIES_VERSION}-ubuntu${UBUNTU_RELEASE}.deb" && rm -rf /var/lib/apt/lists/* && \
  439. cd /usr/local/cuda/lib64 && sudo find . -maxdepth 1 -type l -name "*libnvrtc.so.*" -exec sh -c 'ln -snf $(basename {}) libnvrtc.so' \;
  440. # Add configuration for Selkies-GStreamer Joystick interposer
  441. ENV LD_PRELOAD /usr/local/lib/selkies-js-interposer/joystick_interposer.so${LD_PRELOAD:+:${LD_PRELOAD}}
  442. ENV SDL_JOYSTICK_DEVICE /dev/input/js0
  443. # Install the noVNC web interface and the latest x11vnc for fallback
  444. RUN apt-get update && apt-get install --no-install-recommends -y \
  445. autoconf \
  446. automake \
  447. autotools-dev \
  448. chrpath \
  449. debhelper \
  450. git \
  451. jq \
  452. python3 \
  453. python3-numpy \
  454. libc6-dev \
  455. libcairo2-dev \
  456. libjpeg-turbo8-dev \
  457. libssl-dev \
  458. libv4l-dev \
  459. libvncserver-dev \
  460. libtool-bin \
  461. libxdamage-dev \
  462. libxinerama-dev \
  463. libxrandr-dev \
  464. libxss-dev \
  465. libxtst-dev \
  466. libavahi-client-dev && \
  467. rm -rf /var/lib/apt/lists/* && \
  468. # Build the latest x11vnc source to avoid various errors
  469. git clone "https://github.com/LibVNC/x11vnc.git" /tmp/x11vnc && \
  470. cd /tmp/x11vnc && autoreconf -fi && ./configure && make install && cd / && rm -rf /tmp/* && \
  471. curl -fsSL "https://github.com/novnc/noVNC/archive/v${NOVNC_VERSION}.tar.gz" | tar -xzf - -C /opt && \
  472. mv -f "/opt/noVNC-${NOVNC_VERSION}" /opt/noVNC && \
  473. ln -snf /opt/noVNC/vnc.html /opt/noVNC/index.html && \
  474. # Use the latest Websockify source to expose noVNC
  475. git clone "https://github.com/novnc/websockify.git" /opt/noVNC/utils/websockify
  476. # Add custom packages right below this comment, or use FROM in a new container and replace entrypoint.sh or supervisord.conf, and set ENTRYPOINT to /usr/bin/supervisord
  477. # Create user with password ${PASSWD} and assign adequate groups
  478. RUN apt-get update && apt-get install --no-install-recommends -y \
  479. sudo \
  480. tzdata && \
  481. rm -rf /var/lib/apt/lists/* && \
  482. groupadd -g 1000 user && \
  483. useradd -ms /bin/bash user -u 1000 -g 1000 && \
  484. usermod -a -G adm,audio,cdrom,dialout,dip,fax,floppy,input,lp,lpadmin,plugdev,pulse-access,scanner,ssl-cert,sudo,tape,tty,video,voice user && \
  485. echo "user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
  486. chown user:user /home/user && \
  487. echo "user:${PASSWD}" | chpasswd && \
  488. ln -snf "/usr/share/zoneinfo/$TZ" /etc/localtime && echo "$TZ" > /etc/timezone
  489. # Copy scripts and configurations used to start the container
  490. COPY entrypoint.sh /etc/entrypoint.sh
  491. RUN chmod 755 /etc/entrypoint.sh
  492. COPY selkies-gstreamer-entrypoint.sh /etc/selkies-gstreamer-entrypoint.sh
  493. RUN chmod 755 /etc/selkies-gstreamer-entrypoint.sh
  494. COPY supervisord.conf /etc/supervisord.conf
  495. RUN chmod 755 /etc/supervisord.conf
  496. EXPOSE 8080
  497. USER user
  498. ENV SHELL /bin/bash
  499. ENV USER user
  500. WORKDIR /home/user
  501. ENTRYPOINT ["/usr/bin/supervisord"]