2021-01-17 13:46:29 +00:00
|
|
|
FROM amd64/docker:19.03-dind@sha256:11d8deb41704881593ac1198d97c8d0a304ff521c2bbe2253d7fa04f56403268
|
2021-01-17 12:06:23 +00:00
|
|
|
|
|
|
|
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
|
|
|
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
|
|
|
LABEL org.opencontainers.image.title="drone-docker"
|
|
|
|
LABEL org.opencontainers.image.url="https://github.com/thegeeklab/drone-docker"
|
|
|
|
LABEL org.opencontainers.image.source="https://github.com/thegeeklab/drone-docker"
|
|
|
|
LABEL org.opencontainers.image.documentation="https://github.com/thegeeklab/drone-docker"
|
|
|
|
|
|
|
|
ENV DOCKER_HOST=unix:///var/run/docker.sock
|
|
|
|
|
|
|
|
RUN apk --update add --virtual .build-deps curl && \
|
|
|
|
mkdir -p /etc/docker/ && \
|
2021-01-17 12:32:27 +00:00
|
|
|
curl -SsL -o /etc/docker/default.json https://raw.githubusercontent.com/moby/moby/19.03/profiles/seccomp/default.json && \
|
2021-01-17 12:06:23 +00:00
|
|
|
sed -i 's/SCMP_ACT_ERRNO/SCMP_ACT_TRACE/g' /etc/docker/default.json && \
|
|
|
|
chmod 600 /etc/docker/default.json && \
|
|
|
|
apk del .build-deps && \
|
|
|
|
rm -rf /var/cache/apk/* && \
|
|
|
|
rm -rf /tmp/*
|
|
|
|
|
|
|
|
ADD release/amd64/drone-docker /bin/
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/dockerd-entrypoint.sh", "drone-docker"]
|