From 4ac2f49cdc441c4605ec87ac97253e16fcd94f05 Mon Sep 17 00:00:00 2001 From: Sean Payne Date: Sun, 17 May 2015 01:30:29 -0700 Subject: [PATCH] Re-arranged Dockerfile to reduce container size --- Dockerfile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 06424b2..bb446e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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