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.
This commit is contained in:
Brandon Tomlinson 2016-09-19 09:24:32 -05:00 committed by GitHub
parent bea5e560e6
commit 9389a0a865
1 changed files with 3 additions and 2 deletions

View File

@ -8,8 +8,9 @@
FROM ubuntu FROM ubuntu
# Install Glances (develop branch) # Install Glances (develop branch)
RUN apt-get -y install curl && \ RUN apt-get update && apt-get -y install curl && rm -rf /var/lib/apt/lists/*
curl -L https://raw.githubusercontent.com/nicolargo/glancesautoinstall/master/install-develop.sh | /bin/bash RUN curl -L https://raw.githubusercontent.com/nicolargo/glancesautoinstall/master/install-develop.sh | /bin/bash && rm -rf /var/lib/apt/lists/*
# Define working directory. # Define working directory.
WORKDIR /glances WORKDIR /glances