From de97dabce2149b1cb099093b5f09ff71e7d2ec65 Mon Sep 17 00:00:00 2001 From: Richard North Date: Sun, 11 Oct 2020 09:55:35 +0100 Subject: [PATCH] Use alpine as base, instead of scratch So that TCP port checks that rely on /bin/sh work, and to aid general debugging. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ec4f390..8a7102c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ RUN go mod download COPY . ./ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o /helloworld . -FROM scratch +FROM alpine:3.12 COPY static /static COPY --from=builder /helloworld /helloworld ENTRYPOINT ["/helloworld"]