add dockerfile and sample compose file

This commit is contained in:
Tommy Tang 2017-08-31 09:35:13 +00:00
parent 4844e0d8de
commit 9964a55d49
2 changed files with 25 additions and 0 deletions

16
Dockerfile Executable file
View File

@ -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

9
docker-compose.yml Normal file
View File

@ -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