Streamlined visuals
+ title + favicon + wallpaper - CtrlAltDel button
This commit is contained in:
@@ -12,22 +12,25 @@ ARG WB_VERSION=1.4.0
|
|||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
RUN apt-get update -y && \
|
RUN apt-get update -y && \
|
||||||
apt-get install -y git x11vnc xvfb openbox libnss3 libgbm-dev libasound2 && \
|
apt-get install -y git x11vnc xvfb openbox hsetroot libnss3 libgbm-dev libasound2 && \
|
||||||
apt-get autoclean && \
|
apt-get autoclean && \
|
||||||
apt-get autoremove && \
|
apt-get autoremove && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN useradd -md /app -s /bin/bash bot
|
RUN useradd -md /app -s /bin/bash bot
|
||||||
RUN cd /app && git clone https://github.com/novnc/noVNC.git && \
|
RUN cd /app && git clone https://github.com/novnc/noVNC.git && \
|
||||||
cd /app/noVNC/utils && git clone https://github.com/kanaka/websockify websockify && \
|
cd noVNC/ && cp vnc_lite.html index.html && sed -i -e 's/<title>noVNC<\/title>/<title>Wohnungsbot<\/title>\n\n <link rel="icon" type="image\/x-icon" href="favicon.ico">/' -e "s/document\.getElementById('sendCtrlAltDelButton')//" -e 's/\.onclick = sendCtrlAltDel\;//' -e 's/<div id="sendCtrlAltDelButton">Send CtrlAltDel<\/div>//' index.html && \
|
||||||
|
cd utils && git clone https://github.com/kanaka/websockify websockify && \
|
||||||
mkdir /data && mkdir /app/.config && ln -s /data /app/.config/Wohnungsbot
|
mkdir /data && mkdir /app/.config && ln -s /data /app/.config/Wohnungsbot
|
||||||
ADD startup.sh /app/startup.sh
|
ADD startup.sh /app/startup.sh
|
||||||
ADD openbox/* /app/.config/openbox/
|
ADD openbox/* /app/.config/openbox/
|
||||||
COPY --from=builder /root/wohnungsbot/release/Wohnungsbot-$WB_VERSION.AppImage /app/Wohnungsbot.AppImage
|
COPY --from=builder /root/wohnungsbot/release/Wohnungsbot-$WB_VERSION.AppImage /app/Wohnungsbot.AppImage
|
||||||
|
COPY --from=builder /root/wohnungsbot/resources/icon.ico /app/noVNC/favicon.ico
|
||||||
|
COPY --from=builder /root/wohnungsbot/resources/icons/512x512.png /app/background.png
|
||||||
RUN chmod 0755 /app/startup.sh && chown -R bot /app && chown -R bot /data
|
RUN chmod 0755 /app/startup.sh && chown -R bot /app && chown -R bot /data
|
||||||
|
|
||||||
VOLUME /data
|
VOLUME /data
|
||||||
USER bot
|
USER bot
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ENTRYPOINT /app/startup.sh
|
ENTRYPOINT /app/startup.sh
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
# Programs that will run after Openbox has started
|
# Programs that will run after Openbox has started
|
||||||
~/Wohnungsbot.AppImage --appimage-extract-and-run --no-sandbox
|
hsetroot -center ~/background.png &
|
||||||
|
~/Wohnungsbot.AppImage --appimage-extract-and-run --no-sandbox
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ Xvfb :1 -screen 0 1600x900x16 &
|
|||||||
sleep 5
|
sleep 5
|
||||||
openbox-session&
|
openbox-session&
|
||||||
x11vnc -display :1 -nopw -listen localhost -xkb -forever &
|
x11vnc -display :1 -nopw -listen localhost -xkb -forever &
|
||||||
cd /app/noVNC && ln -s vnc_lite.html index.html && ./utils/novnc_proxy --vnc localhost:5900
|
cd /app/noVNC && ./utils/novnc_proxy --vnc localhost:5900
|
||||||
|
|||||||
Reference in New Issue
Block a user