2015-06-11 23:43:20 +02:00
|
|
|
FROM debian:wheezy
|
2015-05-11 06:08:28 +02:00
|
|
|
|
2015-06-11 23:43:20 +02:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get -y upgrade && \
|
|
|
|
apt-get -y install auditd ca-certificates curl gawk net-tools procps --no-install-recommends && \
|
|
|
|
curl -sSL https://get.docker.com/ | sh && \
|
|
|
|
apt-get -y purge git openssh* patch rsync* && \
|
|
|
|
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
|
2015-05-11 06:08:28 +02:00
|
|
|
|
2015-05-28 00:08:25 +02:00
|
|
|
RUN mkdir /docker-bench-security
|
2015-05-11 06:08:28 +02:00
|
|
|
|
2015-05-28 00:08:25 +02:00
|
|
|
COPY . /docker-bench-security
|
2015-05-11 06:08:28 +02:00
|
|
|
|
2015-05-28 00:08:25 +02:00
|
|
|
WORKDIR /docker-bench-security
|
2015-05-11 06:08:28 +02:00
|
|
|
|
2015-05-28 00:08:25 +02:00
|
|
|
ENTRYPOINT ["/bin/sh", "docker-bench-security.sh"]
|