change source image

This commit is contained in:
岳松
2016-09-30 14:03:19 +08:00
parent 39352edf45
commit 8244b9b1b2

View File

@@ -1,7 +1,6 @@
FROM centos:latest FROM centos:latest
MAINTAINER xiaosong MAINTAINER xiaosong
RUN yum update -y \ RUN yum update -y \
&& yum swap fakesystemd systemd \
&& yum -y install wget vim tigervnc-server epel-release firefox \ && yum -y install wget vim tigervnc-server epel-release firefox \
&& yum -y groupinstall xfce && 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 \ RUN wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.635/install_flash_player_11_linux.x86_64.tar.gz \
@@ -12,7 +11,6 @@ RUN wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.635/insta
&& rm -rf flash_player install_flash_player_11_linux.x86_64.tar.gz /tmp/.X11-unix/* && 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/vncserver@:1.service /lib/systemd/system/vncserver@:1.service
ADD ./conf/xstartup /root/.vnc/xstartup ADD ./conf/xstartup /root/.vnc/xstartup
RUN echo "xiaosong" | /usr/bin/vncpasswd -f RUN echo "xiaosong" | /usr/bin/vncpasswd -f > /root/.vnc/passwd
RUN systemctl enable vncserver@:1.service \ RUN systemctl enable vncserver@:1.service
&& systemctl start vncserver@:1.service
EXPOSE 5901 EXPOSE 5901