Re-arranged Dockerfile to reduce container size

This commit is contained in:
Sean Payne
2015-05-17 01:30:29 -07:00
parent 4a0cbfba00
commit 4ac2f49cdc

View File

@@ -1,10 +1,17 @@
FROM ubuntu:trusty
MAINTAINER paimpozhil@gmail.com
RUN apt-get update -y
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get install -y git x11vnc wget python python-numpy unzip Xvfb firefox openbox geany menu
RUN cd /root && git clone https://github.com/kanaka/noVNC.git
ADD startup.sh /startup.sh
RUN chmod 0755 /startup.sh
RUN apt-get update -y && \
apt-get install -y git x11vnc wget python python-numpy unzip Xvfb firefox openbox geany menu && \
cd /root && git clone https://github.com/kanaka/noVNC.git && \
chmod 0755 /startup.sh && \
apt-get autoclean && \
apt-get autoremove && \
rm -rf /var/lib/apt/lists/*
CMD /startup.sh
EXPOSE 6080