Fixed container restart
This commit is contained in:
+5
-2
@@ -34,15 +34,18 @@ RUN chmod 0600 ~/.vnc/passwd
|
||||
|
||||
EXPOSE 5900
|
||||
|
||||
COPY vnc/xstartup.turbovnc /root/.vnc/
|
||||
COPY vnc/xstartup.turbovnc /etc/
|
||||
COPY vnc/turbovncserver-security.conf /etc/
|
||||
RUN chmod 0600 /etc/turbovncserver-security.conf
|
||||
COPY vnc/turbovncserver.conf /etc/
|
||||
COPY app/*.sh /app/
|
||||
|
||||
RUN openssl req -x509 -nodes -newkey rsa:2048 -keyout /tmp/novnc.key -out /tmp/novnc.pem -days 3650 -subj "/C=US/ST=NY/L=NY/O=NY/OU=NY/CN=NY emailAddress=email@example.com"
|
||||
ENV DISPLAY_NUM=99
|
||||
ENV DISPLAY=:${DISPLAY_NUM}
|
||||
RUN touch /root/.Xauthority
|
||||
|
||||
CMD ["/app/app.sh"]
|
||||
ENTRYPOINT ["/app/app.sh"]
|
||||
|
||||
# https://dunedlin.wordpress.com/2020/10/24/a-minimal-x11-install/
|
||||
# https://askubuntu.com/questions/1313445/how-do-i-install-vnc-on-a-headless-ubuntu-20-10
|
||||
|
||||
Reference in New Issue
Block a user