@@ -4,7 +4,7 @@ FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.22 AS frontend
44
55RUN \
66 echo "**** install build packages ****" && \
7- apk add --no-cache \
7+ apk add \
88 cmake \
99 git \
1010 nodejs \
@@ -16,24 +16,29 @@ RUN \
1616 https://github.com/selkies-project/selkies.git \
1717 /src && \
1818 cd /src && \
19- git checkout -f 89e39cf7d58c8f7c87ac5922b56b84f745ddeeab
19+ git checkout -f 29466e687d2dbed57f657e47b69fab217a81ef1f
2020
2121RUN \
22- echo "**** build frontend ****" && \
23- cd /src && \
24- cd addons/gst-web-core && \
25- npm install && \
26- npm run build && \
27- cp dist/selkies-core.js ../selkies-dashboard/src && \
28- cd ../selkies-dashboard && \
22+ echo "**** build shared core library ****" && \
23+ cd /src/addons/gst-web-core && \
2924 npm install && \
3025 npm run build && \
31- mkdir dist/src dist/nginx && \
32- cp ../universal-touch-gamepad/universalTouchGamepad.js dist/src/ && \
33- cp ../gst-web-core/nginx/* dist/nginx/ && \
34- cp -r ../gst-web-core/dist/jsdb dist/ && \
26+ echo "**** build multiple dashboards ****" && \
27+ DASHBOARDS="selkies-dashboard selkies-dashboard-zinc selkies-dashboard-wish" && \
3528 mkdir /buildout && \
36- cp -ar dist/* /buildout/
29+ for DASH in $DASHBOARDS; do \
30+ cd /src/addons/$DASH && \
31+ cp ../gst-web-core/dist/selkies-core.js src/ && \
32+ npm install && \
33+ npm run build && \
34+ mkdir -p dist/src dist/nginx && \
35+ cp ../gst-web-core/dist/selkies-core.js dist/src/ && \
36+ cp ../universal-touch-gamepad/universalTouchGamepad.js dist/src/ && \
37+ cp ../gst-web-core/nginx/* dist/nginx/ && \
38+ cp -r ../gst-web-core/dist/jsdb dist/ && \
39+ mkdir -p /buildout/$DASH && \
40+ cp -ar dist/* /buildout/$DASH/; \
41+ done
3742
3843# Runtime stage
3944FROM ghcr.io/linuxserver/baseimage-fedora:arm64v8-42
@@ -166,7 +171,7 @@ RUN \
166171 echo "**** install selkies ****" && \
167172 curl -o \
168173 /tmp/selkies.tar.gz -L \
169- "https://github.com/selkies-project/selkies/archive/89e39cf7d58c8f7c87ac5922b56b84f745ddeeab .tar.gz" && \
174+ "https://github.com/selkies-project/selkies/archive/29466e687d2dbed57f657e47b69fab217a81ef1f .tar.gz" && \
170175 cd /tmp && \
171176 tar xf selkies.tar.gz && \
172177 cd selkies-* && \
@@ -208,6 +213,9 @@ RUN \
208213 -e 's|</keyboard>| <keybind key="C-S-d"><action name="ToggleDecorations"/></keybind>\n</keyboard>|' \
209214 -e 's|<number>4</number>|<number>1</number>|' \
210215 /etc/xdg/openbox/rc.xml && \
216+ sed -i \
217+ 's/--startup/--replace --startup/g' \
218+ /usr/bin/openbox-session && \
211219 echo "**** user perms ****" && \
212220 echo "abc:abc" | chpasswd && \
213221 usermod -s /bin/bash abc && \
@@ -249,7 +257,7 @@ RUN \
249257
250258# add local files
251259COPY /root /
252- COPY --from=frontend /buildout /usr/share/selkies/www
260+ COPY --from=frontend /buildout /usr/share/selkies
253261COPY --from=xvfb / /
254262
255263# ports and volumes
0 commit comments