提交 9389a0a8 编写于 作者: B Brandon Tomlinson 提交者: GitHub

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.
上级 bea5e560
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册