55 lines
1.6 KiB
Docker
55 lines
1.6 KiB
Docker
FROM ubuntu:18.04
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
# RUN locale-gen en_US.UTF-8
|
|
ENV LANG=en_US.UTF-8
|
|
ENV LANGUAGE=en_US.UTF-8
|
|
ENV LC_ALL=en_US.UTF-8
|
|
|
|
ENV XYZ=1280x720x16
|
|
ENV TZ="Asia/Shanghai"
|
|
ENV VNC_PW="vncpass"
|
|
ENV DISPLAY=:0
|
|
|
|
RUN apt-get update -y && \
|
|
apt-get install -qqy --no-install-recommends \
|
|
gettext-base wget curl iputils-ping iproute2 mtr apt-utils \
|
|
vim net-tools supervisor
|
|
|
|
RUN apt-get -qqy --no-install-recommends install \
|
|
fonts-ipafont-gothic \
|
|
xfonts-100dpi \
|
|
xfonts-75dpi \
|
|
xfonts-cyrillic \
|
|
xfonts-scalable \
|
|
language-pack-zh-hans \
|
|
ttf-wqy-microhei
|
|
|
|
RUN apt-get -y install xvfb x11vnc openbox xdotool git git-core ca-certificates && \
|
|
mkdir ~/.vnc && \
|
|
touch ~/.vnc/passwd
|
|
RUN x11vnc -storepasswd $VNC_PW ~/.vnc/passwd
|
|
|
|
RUN git clone --recursive https://github.com/novnc/noVNC.git /opt/novnc && \
|
|
git clone --recursive https://github.com/novnc/websockify.git /opt/novnc/utils/websockify && \
|
|
ln -s /opt/novnc/vnc.html /opt/novnc/index.html
|
|
RUN git clone --recursive https://git.n0r.su/n0rdye/novnc /opt/noweb
|
|
|
|
RUN echo "deb http://archive.canonical.com/ubuntu/ xenial partner" >> /etc/apt/sources.list && \
|
|
apt-get update && \
|
|
apt-get install -y --no-install-recommends firefox && \
|
|
locale-gen en_US.UTF-8
|
|
|
|
RUN apt-get upgrade --yes && \
|
|
apt-get autoclean && \
|
|
apt-get autoremove && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|
#COPY myrun /usr/bin/myrun
|
|
#RUN chmod +x /usr/bin/myrun
|
|
|
|
# EXPOSE 5900
|
|
EXPOSE 8787
|
|
|
|
CMD ["/usr/bin/supervisord"]
|