change source image
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user