From ac5f82fd9d6006c8998b0b58d9750eb7e0340b6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B2=B3=E6=9D=BE?= Date: Tue, 18 Oct 2016 16:12:20 +0800 Subject: [PATCH] modify --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cf4d4e6..fb795c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,4 +14,5 @@ RUN mkdir /root/.vnc/ \ EXPOSE 5901 COPY xstartup /root/.vnc/ COPY vnc.sh /opt/ -CMD ["/opt/vnc.sh"] \ No newline at end of file +RUN chmod +x /root/.vnc/xstartup /etc/X11/xinit/xinitrc +ENTRYPOINT ["/opt/vnc.sh"] \ No newline at end of file