centos
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -1,8 +1,10 @@
|
||||
FROM ubuntu
|
||||
FROM centos:6
|
||||
|
||||
RUN apt-get update -y \
|
||||
&& apt-get install -y wget firefox xfce4 vnc4server
|
||||
ENV DISPLAY=":1" VNC_COL_DEPTH=24 VNC_RESOLUTION=1280x800 VNC_PW=xiaosong
|
||||
RUN yum update -y \
|
||||
&& yum -y install wget vim tigervnc-server epel-release firefox \
|
||||
&& yum -y groupinstall xfce \
|
||||
&& yum clean all
|
||||
ENV VNC_PW=xiaosong
|
||||
RUN mkdir /root/.vnc/ \
|
||||
&& wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.635/install_flash_player_11_linux.x86_64.tar.gz \
|
||||
&& mkdir flash_player \
|
||||
@@ -10,9 +12,10 @@ RUN mkdir /root/.vnc/ \
|
||||
&& 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
|
||||
COPY xstartup /root/.vnc/
|
||||
COPY vnc.sh /opt/
|
||||
RUN chmod +x /root/.vnc/xstartup /etc/X11/xinit/xinitrc
|
||||
RUN chmod +x /opt/vnc.sh /root/.vnc/xstartup /etc/X11/xinit/xinitrc \
|
||||
&& echo "VNCSERVERS=\"1:root\"" >> /etc/sysconfig/vncservers \
|
||||
&& echo "VNCSERVERARGS[1]=\"-geometry 1280x800 -depth 24\"" >> /etc/sysconfig/vncservers
|
||||
ENTRYPOINT ["/opt/vnc.sh"]
|
||||
Reference in New Issue
Block a user