Browse Source

Ajout de dépendance supplémentaire pour Steam

penta 1 month ago
parent
commit
3f9ccf6e28
1 changed files with 15 additions and 1 deletions
  1. 15 1
      Dockerfile

+ 15 - 1
Dockerfile

@@ -324,6 +324,8 @@ RUN apt-get update \
         humanity-icon-theme \
         keyboard-configuration \
         tango-icon-theme \
+        mesa-utils \
+        flatpak \
     && sed -i \
         -e 's#/var/log/nginx/access\.log#/dev/stdout#g' \
         -e 's#/var/log/nginx/error\.log#/dev/stderr#g' \
@@ -545,7 +547,19 @@ USER ${USER_UID}:${USER_GID}
 
 ENV USER="${USER_NAME}" \
     HOME="/home/${USER_NAME}" \
-    SHELL="/bin/bash"
+    SHELL="/bin/bash" \
+    XDG_DATA_DIRS="/home/${USER_NAME}/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share"
+
+RUN mkdir -p "${HOME}/.local/share/flatpak" \
+    && flatpak --user remote-add \
+        --if-not-exists \
+        flathub \
+        https://flathub.org/repo/flathub.flatpakrepo \
+    && flatpak --user install \
+        --noninteractive \
+        -y \
+        flathub \
+        com.valvesoftware.Steam
 
 WORKDIR /home/${USER_NAME}