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
6
6
RUN apt-get update -qqy \
7
7
&& apt-get -qqy install \
8
8
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/*
12
10
13
11
#=================
14
12
# Locale settings
@@ -43,10 +41,19 @@ RUN apt-get update -qqy \
43
41
fluxbox \
44
42
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
45
43
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
+
46
54
#==============================
47
55
# Scripts to run Selenium Node
48
56
#==============================
49
57
COPY entry_point.sh /opt/bin/entry_point.sh
50
- RUN chmod +x /opt/bin/entry_point.sh
51
58
52
59
EXPOSE 5900
You can’t perform that action at this time.
0 commit comments