diff --git a/Dockerfile b/Dockerfile new file mode 100755 index 00000000..62d749ec --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM python + +ENV VER=${VER:-relpath} \ + REPO=https://github.com/twhtanghk/noVNC \ + APP=/usr/src/app + +RUN apt-get update \ +&& apt-get install -y git net-tools \ +&& apt-get clean \ +&& rm -rf /var/lib/apt/lists/* \ +&& pip install numpy \ +&& git clone -b $VER $REPO $APP + +WORKDIR $APP + +EXPOSE 6080 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..9aca6a4b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +version: '2' +services: + novnc: + image: twhtanghk/novnc + ports: + - 6080 + env_file: + - ../.env + command: /usr/src/app/utils/launch.sh --vnc server:port