change source image

This commit is contained in:
岳松
2016-09-30 14:04:08 +08:00
parent 8244b9b1b2
commit e2fae7e5cf

View File

@@ -1,7 +1,7 @@
FROM centos:latest
FROM centos:6
MAINTAINER xiaosong
RUN yum update -y \
&& yum -y install wget vim tigervnc-server epel-release firefox \
&& yum -y install wget tigervnc-server epel-release firefox \
&& yum -y groupinstall xfce
RUN wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.635/install_flash_player_11_linux.x86_64.tar.gz \
&& mkdir flash_player \
@@ -9,8 +9,6 @@ RUN wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.635/insta
&& mkdir -p ~/.mozilla/plugins/ \
&& cp flash_player/libflashplayer.so ~/.mozilla/plugins/ \
&& rm -rf flash_player install_flash_player_11_linux.x86_64.tar.gz /tmp/.X11-unix/*
ADD ./conf/vncserver@:1.service /lib/systemd/system/vncserver@:1.service
ADD ./conf/xstartup /root/.vnc/xstartup
RUN echo "xiaosong" | /usr/bin/vncpasswd -f > /root/.vnc/passwd
RUN systemctl enable vncserver@:1.service
EXPOSE 5901
ENTRYPOINT ["/usr/bin/vncserver", ":1", "-geometry 1280x720", "-depth 24"]