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 <jumanjiman@gmail.com>
This commit is contained in:
Paul Morgan 2015-09-05 11:22:55 -04:00
parent dafd938d19
commit 53fe0c948e

View file

@ -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