Skip to content

Commit 5491fb5

Browse files
committed
swap alpine mate to chromium
1 parent 9530e28 commit 5491fb5

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN \
1717
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/webtop-logo.png && \
1818
echo "**** install packages ****" && \
1919
apk add --no-cache \
20-
firefox \
20+
chromium \
2121
mate-desktop-environment \
2222
util-linux-misc && \
2323
echo "**** mate tweaks ****" && \
@@ -28,6 +28,9 @@ RUN \
2828
rm -f \
2929
/etc/xdg/autostart/mate-power-manager.desktop \
3030
/etc/xdg/autostart/mate-screensaver.desktop && \
31+
sed -i \
32+
's:/usr/bin/chromium-browser:/usr/bin/chromium:g' \
33+
/usr/share/applications/chromium.desktop && \
3134
echo "**** cleanup ****" && \
3235
rm -rf \
3336
/tmp/*

Dockerfile.aarch64

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN \
1717
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/webtop-logo.png && \
1818
echo "**** install packages ****" && \
1919
apk add --no-cache \
20-
firefox \
20+
chromium \
2121
mate-desktop-environment \
2222
util-linux-misc && \
2323
echo "**** mate tweaks ****" && \
@@ -28,6 +28,9 @@ RUN \
2828
rm -f \
2929
/etc/xdg/autostart/mate-power-manager.desktop \
3030
/etc/xdg/autostart/mate-screensaver.desktop && \
31+
sed -i \
32+
's:/usr/bin/chromium-browser:/usr/bin/chromium:g' \
33+
/usr/share/applications/chromium.desktop && \
3134
echo "**** cleanup ****" && \
3235
rm -rf \
3336
/tmp/*

root/usr/bin/chromium

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#! /bin/bash
2+
3+
BIN=/usr/bin/chromium-browser
4+
5+
# Cleanup
6+
if ! pgrep chromium > /dev/null;then
7+
rm -f $HOME/.config/chromium/Singleton*
8+
fi
9+
10+
# Run normally on privved containers or modified un non priv
11+
if grep -q 'Seccomp:.0' /proc/1/status; then
12+
${BIN} --no-first-run --password-store=basic "$@"
13+
else
14+
${BIN} --no-first-run --password-store=basic --no-sandbox --test-type "$@"
15+
fi

0 commit comments

Comments
 (0)