From 53fe0c948ede1dc8d3f968679f87d87b757273cd Mon Sep 17 00:00:00 2001 From: Paul Morgan Date: Sat, 5 Sep 2015 11:22:55 -0400 Subject: [PATCH] alpine: force all packages to be upgraded From http://wiki.alpinelinux.org/wiki/Upgrading_Alpine > The `--available` switch is used to force all packages to be upgraded, > even if they have the same version numbers. > Sometimes changes in uClibc require doing this. It seems prudent to demonstrate canonical upgrade procedure in a security tool. Signed-off-by: Paul Morgan --- distros/Dockerfile.alpine | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/distros/Dockerfile.alpine b/distros/Dockerfile.alpine index ae8946d..3fa13b5 100644 --- a/distros/Dockerfile.alpine +++ b/distros/Dockerfile.alpine @@ -4,8 +4,9 @@ FROM alpine:3.2 MAINTAINER dockerbench.com +# http://wiki.alpinelinux.org/wiki/Upgrading_Alpine RUN apk update && \ - apk upgrade && \ + apk upgrade --available && \ apk --update add docker RUN mkdir /docker-bench-security