From 9389a0a865d07f31340164c59c3726d109fa42d3 Mon Sep 17 00:00:00 2001 From: Brandon Tomlinson Date: Mon, 19 Sep 2016 09:24:32 -0500 Subject: [PATCH] Docker build can't install packages Need to initialize the apt repos with `apt-get update`. Since you're maintaining your own install script and not installing cleanly here, we should break the system apart so that we're clearing the apt cache properly. --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c0566691..8ca70f45 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,9 @@ FROM ubuntu # Install Glances (develop branch) -RUN apt-get -y install curl && \ - curl -L https://raw.githubusercontent.com/nicolargo/glancesautoinstall/master/install-develop.sh | /bin/bash +RUN apt-get update && apt-get -y install curl && rm -rf /var/lib/apt/lists/* +RUN curl -L https://raw.githubusercontent.com/nicolargo/glancesautoinstall/master/install-develop.sh | /bin/bash && rm -rf /var/lib/apt/lists/* + # Define working directory. WORKDIR /glances