docker-bench-security/distros/Dockerfile.alpine
Paul Morgan 53fe0c948e 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>
2015-09-05 11:29:40 -04:00

18 lines
389 B
Text

# REPOSITORY https://github.com/docker/docker-bench-security
FROM alpine:3.2
MAINTAINER dockerbench.com
# http://wiki.alpinelinux.org/wiki/Upgrading_Alpine
RUN apk update && \
apk upgrade --available && \
apk --update add docker
RUN mkdir /docker-bench-security
COPY . /docker-bench-security
WORKDIR /docker-bench-security
ENTRYPOINT ["/bin/sh", "docker-bench-security.sh"]