This commit is contained in:
岳松
2016-10-18 15:25:20 +08:00
parent 0c4599d945
commit 955868a923

View File

@@ -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"]
EXPOSE 5901
COPY vnc.sh /opt/
CMD ["/opt/vnc.sh"]