2016-12-02 15:56:28 +01:00
|
|
|
FROM debian:sid
|
2015-07-01 20:57:26 +02:00
|
|
|
|
2016-12-20 11:41:46 +01:00
|
|
|
LABEL org.label-schema.name="docker-bench-security" \
|
|
|
|
org.label-schema.url="https://github.com/konstruktoid/docker-bench-security" \
|
|
|
|
org.label-schema.vcs-url="https://github.com/konstruktoid/docker-bench-security.git"
|
2015-07-01 20:57:26 +02:00
|
|
|
|
|
|
|
RUN \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get -y upgrade && \
|
2016-12-02 15:56:28 +01:00
|
|
|
apt-get -y install auditd ca-certificates docker.io \
|
2015-07-01 20:57:26 +02:00
|
|
|
gawk net-tools procps --no-install-recommends && \
|
|
|
|
apt-get -y clean && \
|
|
|
|
apt-get -y autoremove && \
|
|
|
|
rm -rf /var/lib/apt/lists/* \
|
|
|
|
/usr/share/doc /usr/share/doc-base \
|
|
|
|
/usr/share/man /usr/share/locale /usr/share/zoneinfo
|
|
|
|
|
|
|
|
RUN mkdir /docker-bench-security
|
|
|
|
|
|
|
|
COPY . /docker-bench-security
|
|
|
|
|
|
|
|
WORKDIR /docker-bench-security
|
|
|
|
|
|
|
|
ENTRYPOINT ["/bin/sh", "docker-bench-security.sh"]
|