Add apt update in Dockerfile, since cached lists file may be obsoleted (#149)

[docker]: Add apt update in Dockerfile, since cached lists file may be obsoleted
This commit is contained in:
Qi Luo 2016-12-21 18:20:46 -08:00 committed by GitHub
parent dc4dc7ba99
commit 2380359059
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,8 @@ COPY user-override /etc/opt/quest/vas/user-override
## Pre-install the fundamental packages ## Pre-install the fundamental packages
## Clean up ## Clean up
RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; } && \ RUN apt-get update && \
dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; } && \
apt-get -y install \ apt-get -y install \
sudo \ sudo \
&& \ && \