condense dockefile
Some checks failed
Build Docker Image on Commit / build-and-publish (push) Failing after 5s

This commit is contained in:
Merith 2025-06-05 04:41:29 +00:00
parent b46f9fccce
commit f6703abba2

View file

@ -1,47 +1,23 @@
FROM alpine:latest FROM alpine:latest
# Set environment for non-interactive installs ENV VNC_BUILTIN_WIDTH=1024 \
ENV VNC_BUILTIN_WIDTH=1024 VNC_BUILTIN_HEIGHT=768 \
ENV VNC_BUILTIN_HEIGHT=768 VNC_BUILTIN_PIXELDEPTH=32 \
ENV VNC_BUILTIN_PIXELDEPTH=32 VNC_BUILTIN_DISABLED=true \
ENV VNC_BUILTIN_DISABLED=true DISPLAY=:0
ENV DISPLAY=:0
# Install X/VNC packages # Install packages: X/VNC, fonts, terminal, i3, and utilities
RUN apk add --no-cache \ RUN apk add --no-cache \
x11vnc \ x11vnc xvfb xterm bash \
xvfb \ procps iproute2 inetutils-telnet xdpyinfo wget \
xterm \ font-noto font-noto-cjk font-noto-emoji font-noto-mono fontconfig \
bash \ i3wm i3blocks i3status htop
procps \
iproute2 \
inetutils-telnet \
xdpyinfo \
wget
# Create working directory and expose volume for user data # Configure i3
WORKDIR /
# Install Fonts
RUN apk add --no-cache \
font-noto \
font-noto-cjk \
font-noto-emoji \
fontconfig
# Intall and Setup i3 window manager
RUN apk add --no-cache \
i3wm \
i3blocks \
i3status\
htop
# Copy minimal config
RUN mkdir -p /root/.config/i3
COPY i3.config /root/.config/i3/config COPY i3.config /root/.config/i3/config
# Copy and prepare entrypoint script # Entrypoint script
COPY ./vnc.sh /vnc.sh COPY vnc.sh /vnc.sh
RUN chmod +x /vnc.sh RUN chmod +x /vnc.sh
ENTRYPOINT ["/vnc.sh"] ENTRYPOINT ["/vnc.sh"]