jayfield/novnc-baseimage (built by docker-novnc-baseimage) has been retired, so this now builds on the public ich777/novnc-baseimage instead. That image puts Xvnc/websockify on $PATH and noVNC's web client at /usr/share/novnc/ rather than /opt/TurboVNC and /tmp, so server.sh is updated to match. Verified with a full rebuild and container start: Xvnc, fluxbox, and websockify all come up and the noVNC web UI responds. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018QuKZRefXR3hVaUiXgeu6i
34 lines
979 B
Docker
34 lines
979 B
Docker
# syntax=docker/dockerfile:1
|
|
FROM ich777/novnc-baseimage
|
|
|
|
RUN apt-get update && \
|
|
apt-get -y install --no-install-recommends dosbox unzip alsa-utils smbclient && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
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
|
|
|
|
ENV GAMES_HOME=/opt/games
|
|
ENV SCRIPTS_HOME=/opt/scripts
|
|
ENV PATH=${PATH}:${SCRIPTS_HOME}
|
|
|
|
ADD scripts ${SCRIPTS_HOME}
|
|
WORKDIR /tmp/apps
|
|
RUN smbget -au smb://vlda-01/software/Games/dosbox/stuntcar.zip
|
|
RUN smbget -au smb://vlda-01/software/Games/dosbox/t7g.zip
|
|
|
|
RUN mkdir -p ${GAMES_HOME}
|
|
RUN unzip -o -d ${GAMES_HOME} "/tmp/apps/*.zip"
|
|
RUN rm -rf /tmp/apps
|
|
RUN cd ~
|
|
|
|
EXPOSE 60${DISPLAY_NUM}
|
|
EXPOSE 5900
|
|
|
|
ENTRYPOINT ["/opt/scripts/server_start.sh", "/opt/scripts/server.sh"]
|
|
|
|
# see also
|
|
# https://github.com/ich777/docker-krusader
|