Update packages & cleanup

This commit is contained in:
TheSpad 2023-05-18 19:47:44 +01:00
parent 83ff453c4b
commit 431aaaf9cc
No known key found for this signature in database
GPG Key ID: 08F06191F4587860
3 changed files with 32 additions and 16 deletions

View File

@ -11,14 +11,17 @@ LABEL maintainer="thelamer"
RUN \
echo "**** install packages ****" && \
apk add --no-cache \
firefox \
font-noto \
openbox \
xterm && \
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community \
obconf-qt && \
echo "**** openbox tweaks ****" && \
ln -s /usr/bin/obconf-qt /usr/bin/obconf && \
chromium \
obconf-qt \
st \
util-linux-misc && \
echo "**** application tweaks ****" && \
mv \
/usr/bin/chromium-browser \
/usr/bin/chromium-real && \
ln -s \
/usr/bin/st \
/usr/bin/x-terminal-emulator && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*

View File

@ -11,14 +11,17 @@ LABEL maintainer="thelamer"
RUN \
echo "**** install packages ****" && \
apk add --no-cache \
firefox \
font-noto \
openbox \
xterm && \
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community \
obconf-qt && \
echo "**** openbox tweaks ****" && \
ln -s /usr/bin/obconf-qt /usr/bin/obconf && \
chromium \
obconf-qt \
st \
util-linux-misc && \
echo "**** application tweaks ****" && \
mv \
/usr/bin/chromium-browser \
/usr/bin/chromium-real && \
ln -s \
/usr/bin/st \
/usr/bin/x-terminal-emulator && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*

10
root/usr/bin/chromium-browser Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
BIN=/usr/bin/chromium-real
# Run normally on privved containers or modified un non priv
if grep -q 'Seccomp: 0' /proc/1/status; then
${BIN} --password-store=basic "$@"
else
${BIN} --password-store=basic --no-sandbox --test-type "$@"
fi