serve static assets from embeded filesystem. add build files for lazyos

This commit is contained in:
Robin Olsen
2026-02-26 10:33:46 +01:00
parent d83422104b
commit c769c901cf
7 changed files with 56 additions and 5 deletions

7
build/Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM lscr.io/linuxserver/webtop:arch-kde
COPY survey /usr/local/bin/survey
RUN chmod +x /usr/local/bin/survey
COPY setup-desktop.sh /custom-cont-init.d/01-setup-desktop.sh
RUN chmod +x /custom-cont-init.d/01-setup-desktop.sh

1
build/README.md Normal file
View File

@@ -0,0 +1 @@
# This describes the build process for lazyos

23
build/setup-desktop.sh Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
# This script runs as root when the container starts
echo "**** Setting up custom desktop shortcuts ****"
# Ensure the Desktop folder exists for the default 'abc' user
mkdir -p /config/Desktop
cat <<EOF > /config/Desktop/MyGoApp.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=PM Survey
Comment=Launch my custom Go binary
Exec=/usr/local/bin/survey start
Icon=utilities-terminal
Terminal=true
Categories=Utility;
EOF
chmod +x /config/Desktop/MyGoApp.desktop
chown abc:abc /config/Desktop/MyGoApp.desktop
echo "**** Desktop setup complete ****"