add dockerfile and sample compose file
This commit is contained in:
parent
4844e0d8de
commit
9964a55d49
|
|
@ -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
|
||||
|
|
@ -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
|
||||
Loading…
Reference in New Issue