Skip to content

Commit

Permalink
build images from 'scratch' (#47)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Jim Sheldon authored Feb 12, 2021
1 parent bd0f02f commit d802cdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile.linux.amd64
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.linux.arm64
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d802cdf

Please sign in to comment.