Skip to content

Commit 89e8477

Browse files
committed
Make VNC password configurable at build time
1 parent 54e2ec7 commit 89e8477

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ COPY --from=build-kubedoom /go/src/kubedoom/kubedoom /build/usr/bin
4242
COPY --from=build-doom /usr/local/games/psdoom /build/usr/local/games
4343

4444
FROM ubuntu:21.10
45+
ARG VNCPASSWORD=idbehold
4546
RUN apt-get update && apt-get install -y \
4647
-o APT::Install-Suggests=0 \
4748
--no-install-recommends \
@@ -51,7 +52,7 @@ RUN apt-get update && apt-get install -y \
5152
xvfb \
5253
netcat-openbsd \
5354
&& rm -rf /var/lib/apt/lists/*
54-
RUN mkdir /root/.vnc && x11vnc -storepasswd idbehold /root/.vnc/passwd
55+
RUN mkdir /root/.vnc && x11vnc -storepasswd "${VNCPASSWORD}" /root/.vnc/passwd
5556
COPY --from=build-converge /build /
5657
WORKDIR /root
5758
ENTRYPOINT ["/usr/bin/kubedoom"]

0 commit comments

Comments
 (0)