diff --git a/Dockerfile b/Dockerfile
index 0d391b8..6c7a9f8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -8,7 +8,8 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
LABEL maintainer="thelamer"
# title
-ENV TITLE=WebCord
+ENV TITLE=WebCord \
+DEBIAN_FRONTEND=noninteractive
RUN \
echo "**** install webcord ****" && \
@@ -20,7 +21,8 @@ RUN \
/tmp/webcord.deb -L \
"https://github.com/SpacingBat3/WebCord/releases/download/${WEBCORD_VERSION}/webcord_$(echo ${WEBCORD_VERSION}| cut -c2-)_amd64.deb" && \
apt-get update && \
- apt install -y /tmp/webcord.deb && \
+ apt-get install -y /tmp/webcord.deb && \
+ apt-get install -y --no-install-recommends chromium && \
echo "**** openbox tweaks ****" && \
sed -i 's|| \n yes\n \n|' /etc/xdg/openbox/rc.xml && \
echo "**** application tweaks ****" && \
diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64
index 1bfae6c..cef8daa 100644
--- a/Dockerfile.aarch64
+++ b/Dockerfile.aarch64
@@ -8,7 +8,8 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
LABEL maintainer="thelamer"
# title
-ENV TITLE=WebCord
+ENV TITLE=WebCord \
+DEBIAN_FRONTEND=noninteractive
RUN \
echo "**** install webcord ****" && \
@@ -20,7 +21,8 @@ RUN \
/tmp/webcord.deb -L \
"https://github.com/SpacingBat3/WebCord/releases/download/${WEBCORD_VERSION}/webcord_$(echo ${WEBCORD_VERSION}| cut -c2-)_arm64.deb" && \
apt-get update && \
- apt install -y /tmp/webcord.deb && \
+ apt-get install -y /tmp/webcord.deb && \
+ apt-get install -y --no-install-recommends chromium && \
echo "**** openbox tweaks ****" && \
sed -i 's|| \n yes\n \n|' /etc/xdg/openbox/rc.xml && \
echo "**** application tweaks ****" && \
diff --git a/README.md b/README.md
index 2aa3173..d565797 100644
--- a/README.md
+++ b/README.md
@@ -265,4 +265,5 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Versions
+* **09.05.23:** - Bundle Chromium to provide browser for opening links, etc.
* **21.04.23:** - Initial release.
diff --git a/readme-vars.yml b/readme-vars.yml
index 6c3e2d5..5899098 100644
--- a/readme-vars.yml
+++ b/readme-vars.yml
@@ -75,4 +75,5 @@ app_setup_block: |
# changelog
changelogs:
+ - { date: "09.05.23:", desc: "Bundle Chromium to provide browser for opening links, etc." }
- { date: "21.04.23:", desc: "Initial release." }
diff --git a/root/defaults/menu.xml b/root/defaults/menu.xml
index 788a944..9847c63 100644
--- a/root/defaults/menu.xml
+++ b/root/defaults/menu.xml
@@ -2,6 +2,7 @@
diff --git a/root/usr/bin/chromium b/root/usr/bin/chromium
new file mode 100755
index 0000000..0e19ec7
--- /dev/null
+++ b/root/usr/bin/chromium
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+BIN=/usr/lib/chromium/chromium
+
+# Run normally on privved containers or modified un non priv
+if grep -q 'Seccomp: 0' /proc/1/status; then
+ ${BIN} \
+ --ignore-gpu-blocklist \
+ --no-first-run \
+ --password-store=basic \
+ --simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT' \
+ --user-data-dir \
+ "$@" > /dev/null 2>&1
+else
+ ${BIN} \
+ --ignore-gpu-blocklist \
+ --no-first-run \
+ --no-sandbox \
+ --password-store=basic \
+ --simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT' \
+ --test-type \
+ --user-data-dir \
+ "$@" > /dev/null 2>&1
+fi