diff --git a/Dockerfile b/Dockerfile index 3742796..10ba305 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,10 @@ -FROM ubuntu +FROM ubuntu:14.04 RUN apt-get update \ - && apt-get install -y wget x11vnc xvfb firefox -ENV vncpwd=xiaosong -RUN mkdir ~/.vnc \ - && x11vnc -storepasswd $vncpwd ~/.vnc/passwd \ - && bash -c 'echo "firefox" >> ~/.bashrc' \ + && apt-get install -y wget firefox lxde-core lxterminal tightvncserver +ENV VNCPWD=xiaosong +RUN && mkdir ~/.vnc \ + && echo $VNCPWD $VNCPWD | vncpasswd && \ && wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.635/install_flash_player_11_linux.x86_64.tar.gz \ && mkdir flash_player \ && tar zxvf install_flash_player_11_linux.x86_64.tar.gz -C flash_player \ @@ -13,5 +12,6 @@ RUN mkdir ~/.vnc \ && cp flash_player/libflashplayer.so ~/.mozilla/plugins/ \ && rm -rf flash_player install_flash_player_11_linux.x86_64.tar.gz -EXPOSE 5900 -CMD ["x11vnc", "-forever", "-usepw", "-create"] \ No newline at end of file +EXPOSE 5901 +COPY vnc.sh /opt/ +CMD ["/opt/vnc.sh"] \ No newline at end of file