diff --git a/Dockerfile b/Dockerfile index c08150d..1e6f017 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,6 @@ FROM centos:latest MAINTAINER xiaosong RUN yum update -y \ -&& yum swap fakesystemd systemd \ && yum -y install wget vim 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 \ @@ -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/* ADD ./conf/vncserver@:1.service /lib/systemd/system/vncserver@:1.service ADD ./conf/xstartup /root/.vnc/xstartup -RUN echo "xiaosong" | /usr/bin/vncpasswd -f -RUN systemctl enable vncserver@:1.service \ -&& systemctl start vncserver@:1.service +RUN echo "xiaosong" | /usr/bin/vncpasswd -f > /root/.vnc/passwd +RUN systemctl enable vncserver@:1.service EXPOSE 5901