فهرست منبع

Mise à jour de 'Dockerfile'

penta 4 روز پیش
والد
کامیت
8ab36f9956
1فایلهای تغییر یافته به همراه14 افزوده شده و 0 حذف شده
  1. 14 0
      Dockerfile

+ 14 - 0
Dockerfile

@@ -375,6 +375,8 @@ RUN apt-get update \
         libspa-0.2-modules \
         wireplumber \
         wireplumber-locales \
+        apache2-utils \
+        nginx \
     && apt-get clean \
     && rm -rf \
         /var/lib/apt/lists/* \
@@ -423,6 +425,18 @@ ENV PATH="/opt/selkies/bin:/usr/local/nvidia/bin:${PATH}" \
 # Install the Selkies wheel from the official stable build image.
 COPY --from=selkies-runtime-builder /opt/selkies /opt/selkies
 
+RUN SELKIES_WEB_ROOT="$(
+        /opt/selkies/bin/python -c \
+        'import importlib.util; print(next(iter(importlib.util.find_spec("selkies.selkies_web").submodule_search_locations)))'
+    )" \
+    && echo "Selkies web root: ${SELKIES_WEB_ROOT}" \
+    && test -f "${SELKIES_WEB_ROOT}/index.html" \
+    && ln -s "${SELKIES_WEB_ROOT}" /opt/selkies-web \
+    && install -d -o 1000 -g 1000 -m 0755 \
+        /tmp/nginx \
+        /tmp/nginx/client_body \
+        /tmp/nginx/proxy
+
 COPY --from=selkies-js-interposer-builder \
     /out/selkies_joystick_interposer.so \
     /usr/local/lib/selkies_joystick_interposer.so