forked from fcwu/docker-ubuntu-vnc-desktop
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
41 lines (35 loc) · 1.25 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM ubuntu:14.04
MAINTAINER Matt Brewster <matt.brewster@base2s.com>
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /root
# setup our Ubuntu sources (ADD breaks caching)
#RUN echo "deb http://tw.archive.ubuntu.com/ubuntu/ trusty main\n\
#deb http://tw.archive.ubuntu.com/ubuntu/ trusty multiverse\n\
#deb http://tw.archive.ubuntu.com/ubuntu/ trusty universe\n\
#deb http://tw.archive.ubuntu.com/ubuntu/ trusty restricted\n\
#deb http://ppa.launchpad.net/chris-lea/node.js/ubuntu trusty main\n\
#"> /etc/apt/sources.list
# no Upstart or DBus
# https://github.com/dotcloud/docker/issues/1724#issuecomment-26294856
RUN apt-mark hold initscripts udev plymouth mountall
RUN dpkg-divert --local --rename --add /sbin/initctl && ln -sf /bin/true /sbin/initctl
RUN apt-get update \
&& apt-get install -y --force-yes --no-install-recommends supervisor \
openssh-server pwgen sudo vim-tiny \
net-tools \
lxde x11vnc xvfb \
gtk2-engines-murrine ttf-ubuntu-font-family \
nodejs \
libreoffice firefox \
openjdk-7-jre \
&& apt-get autoclean \
&& apt-get autoremove \
&& rm -rf /var/lib/apt/lists/*
ADD noVNC /noVNC/
ADD startup.sh /
ADD supervisord.conf /
EXPOSE 6080
EXPOSE 5900
EXPOSE 22
WORKDIR /
ENTRYPOINT ["/startup.sh"]