From d802cdf543fb89f5cd6ed5ad0343928475e1c9b0 Mon Sep 17 00:00:00 2001 From: Jim Sheldon Date: Fri, 12 Feb 2021 12:40:21 -0500 Subject: [PATCH] build images from 'scratch' (#47) build docker imaged from the 'scratch' base image this is better security practice and follows the practice of other drone images (like drone-runner-docker) --- docker/Dockerfile.linux.amd64 | 2 +- docker/Dockerfile.linux.arm64 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile.linux.amd64 b/docker/Dockerfile.linux.amd64 index 4a429e9..1739e24 100644 --- a/docker/Dockerfile.linux.amd64 +++ b/docker/Dockerfile.linux.amd64 @@ -1,7 +1,7 @@ FROM alpine:3.10 as alpine RUN apk add -U --no-cache ca-certificates -FROM alpine:3.10 +FROM scratch EXPOSE 3000 ENV GODEBUG netdns=go diff --git a/docker/Dockerfile.linux.arm64 b/docker/Dockerfile.linux.arm64 index 4db998a..512f65d 100644 --- a/docker/Dockerfile.linux.arm64 +++ b/docker/Dockerfile.linux.arm64 @@ -1,7 +1,7 @@ FROM alpine:3.10 as alpine RUN apk add -U --no-cache ca-certificates -FROM alpine:3.10 +FROM scratch EXPOSE 3000 ENV GODEBUG netdns=go