File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,7 @@ USER root
66RUN apt-get update -qqy \
77 && apt-get -qqy install \
88 x11vnc \
9- && rm -rf /var/lib/apt/lists/* /var/cache/apt/* \
10- && mkdir -p /root/.vnc \
11- && x11vnc -storepasswd secret ~/.vnc/passwd
9+ && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
1210
1311#=================
1412# Locale settings
@@ -43,10 +41,19 @@ RUN apt-get update -qqy \
4341 fluxbox \
4442 && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
4543
44+ USER seluser
45+
46+ #==============================
47+ # Generating the VNC password as seluser
48+ # So the service can be started with seluser
49+ #==============================
50+
51+ RUN mkdir -p ~/.vnc \
52+ && x11vnc -storepasswd secret ~/.vnc/passwd
53+
4654#==============================
4755# Scripts to run Selenium Node
4856#==============================
4957COPY entry_point.sh /opt/bin/entry_point.sh
50- RUN chmod +x /opt/bin/entry_point.sh
5158
5259EXPOSE 5900
You can’t perform that action at this time.
0 commit comments