Fixed container restart

This commit is contained in:
2024-05-13 21:43:21 +02:00
parent 987aaa65a7
commit faae225d96
7 changed files with 78 additions and 13 deletions
+5 -2
View File
@@ -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