21 lines
785 B
Docker
21 lines
785 B
Docker
# Firefox over VNC
|
|
#
|
|
# VERSION 0.3
|
|
|
|
FROM ubuntu
|
|
|
|
# Install vnc, xvfb in order to create a 'fake' display and firefox
|
|
RUN apt-get update \
|
|
&& apt-get install -y x11vnc xvfb firefox \
|
|
&& mkdir ~/.vnc \
|
|
&& x11vnc -storepasswd xiaosong ~/.vnc/passwd \
|
|
&& bash -c 'echo "firefox" >> /.bashrc' \
|
|
&& 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 \
|
|
&& mkdir -p ~/.mozilla/plugins/ \
|
|
&& cp flash_player/libflashplayer.so ~/.mozilla/plugins/ \
|
|
&& rm -rf flash_player install_flash_player_11_linux.x86_64.tar.gz
|
|
|
|
EXPOSE 5901
|
|
CMD ["x11vnc", "-forever", "-usepw", "-create"] |