commit 6e663b2349b2c9a0d4c80bcf1b8e296d2308d8c0
parent a672c5b1253b203ebe7688cafb47877a8caa4af4
Author: Henry Unite <unitehenry@gmail.com>
Date: Sat, 25 Jul 2026 04:26:09 +0000
docs: app support file
Diffstat:
1 file changed, 1 insertion(+), 17 deletions(-)
diff --git a/README.md b/README.md
@@ -17,23 +17,7 @@ This `build` script will build the xpod base image and apps (currently only chro
If you'd like to run another app on top of the `xpod-base` image, the only requirement is that you mount a `/app.sh` to the root of the image.
```Dockerfile
-COPY <<'EOF' /app.sh
-#!/bin/bash
-set -e
-
-socat TCP-LISTEN:9222,bind=0.0.0.0,reuseaddr,fork TCP6:[::1]:9222 &
-
-mkdir -p /var/lib/chromium
-chmod -R 777 /var/lib/chromium
-rm -rf /var/lib/chromium/profile/Singleton*
-
-CHROMIUM_WIDTH=${RESOLUTION%%x*}
-CHROMIUM_HEIGHT=${RESOLUTION#*x}; CHROMIUM_HEIGHT=${CHROMIUM_HEIGHT%%x*}
-
-su -c "chromium --disable-gpu --start-maximized --window-size=${CHROMIUM_WIDTH},${CHROMIUM_HEIGHT} --force-device-scale-factor=1 --remote-debugging-port=9222 --user-data-dir=/var/lib/chromium/profile" chrome
-
-EOF
-
+COPY app.sh /app.sh
RUN chmod +x /app.sh
```