Last active
March 17, 2025 13:40
-
-
Save danieluhm2004/8342206b5f915a3445e7fd3a75e806e0 to your computer and use it in GitHub Desktop.
Easy way to start novnc.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: novnc | |
services: | |
novnc: | |
build: | |
context: . | |
dockerfile: ./Dockerfile | |
ports: | |
- 127.0.0.1:6080:6080 | |
restart: always | |
healthcheck: | |
test: ['CMD', 'curl', '-f', 'http://127.0.0.1:6080/vnc.html'] | |
interval: 2s | |
timeout: 10s | |
retries: 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.14 AS installer | |
RUN apk update && apk add --no-cache git python2 procps && \ | |
mkdir -p /app && \ | |
wget -qO- https://github.com/novnc/noVNC/archive/v1.6.0.tar.gz | tar xz --strip 1 -C /app && \ | |
chmod +x /app/utils/novnc_proxy && \ | |
git clone https://github.com/novnc/websockify /app/utils/websockify | |
FROM python:3.14.0a5-bullseye | |
WORKDIR /app | |
COPY --from=installer /app /app | |
RUN pip3 install --no-cache-dir numpy | |
CMD /app/utils/novnc_proxy --vnc host.docker.internal:5900 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment