Skip to content

Commit ec6c705

Browse files
committed
Creating VNC pwd as seluser so the service can be run with that user.
1 parent 17e0cc1 commit ec6c705

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

NodeDebug/Dockerfile.txt

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ USER root
66
RUN 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
#==============================
4957
COPY entry_point.sh /opt/bin/entry_point.sh
50-
RUN chmod +x /opt/bin/entry_point.sh
5158

5259
EXPOSE 5900

0 commit comments

Comments
 (0)