mirror of
https://github.com/fcwu/docker-ubuntu-vnc-desktop
synced 2025-12-06 08:22:31 +01:00
NoVNC default connect
This commit is contained in:
parent
6a93d725c5
commit
54ece84361
2 changed files with 22 additions and 8 deletions
15
Dockerfile
15
Dockerfile
|
|
@ -2,7 +2,6 @@ FROM ubuntu:12.04
|
||||||
MAINTAINER Doro Wu <fcwu.tw@gmail.com>
|
MAINTAINER Doro Wu <fcwu.tw@gmail.com>
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
ENV HTTP_PROXY http://172.17.42.1:3134
|
|
||||||
|
|
||||||
# setup our Ubuntu sources (ADD breaks caching)
|
# setup our Ubuntu sources (ADD breaks caching)
|
||||||
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise main\n\
|
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise main\n\
|
||||||
|
|
@ -16,16 +15,16 @@ deb http://us.archive.ubuntu.com/ubuntu/ precise restricted\n\
|
||||||
RUN apt-mark hold initscripts udev plymouth mountall
|
RUN apt-mark hold initscripts udev plymouth mountall
|
||||||
RUN dpkg-divert --local --rename --add /sbin/initctl && ln -s /bin/true /sbin/initctl
|
RUN dpkg-divert --local --rename --add /sbin/initctl && ln -s /bin/true /sbin/initctl
|
||||||
|
|
||||||
RUN apt-get update
|
RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get update
|
||||||
|
|
||||||
# install our "base" environment
|
# install our "base" environment
|
||||||
RUN apt-get install -y --no-install-recommends openssh-server pwgen sudo vim-tiny
|
RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get install -y --no-install-recommends openssh-server pwgen sudo vim-tiny
|
||||||
RUN apt-get install -y --no-install-recommends lxde
|
RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get install -y --no-install-recommends lxde
|
||||||
RUN apt-get install -y --no-install-recommends x11vnc xvfb
|
RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get install -y --no-install-recommends x11vnc xvfb
|
||||||
RUN apt-get install -y supervisor
|
RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get install -y supervisor
|
||||||
RUN apt-get install -y libreoffice firefox
|
RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get install -y libreoffice firefox
|
||||||
# noVNC
|
# noVNC
|
||||||
RUN apt-get install -y net-tools
|
RUN HTTP_PROXY=http://172.17.42.1:3142 apt-get install -y net-tools
|
||||||
|
|
||||||
ADD startup.sh /
|
ADD startup.sh /
|
||||||
ADD supervisord.conf /
|
ADD supervisord.conf /
|
||||||
|
|
|
||||||
15
noVNC/index.html
Normal file
15
noVNC/index.html
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<!DOCTYPE HTML>
|
||||||
|
<html lang="en-US">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta http-equiv="refresh" content="1;url=vnc_auto.html">
|
||||||
|
<script type="text/javascript">
|
||||||
|
window.location.href = "vnc_auto.html"
|
||||||
|
</script>
|
||||||
|
<title>Page Redirection</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
|
||||||
|
If you are not redirected automatically, follow the <a href='http://example.com'>link to example</a>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Loading…
Reference in a new issue