From 4c5e4126acfa089637c2903a896eafdb3785091c Mon Sep 17 00:00:00 2001 From: Shubham Kumar Date: Sun, 17 Jul 2022 19:28:17 +0530 Subject: [PATCH] replace composite action with docker --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index eeb186c..cc29a1a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,9 +5,10 @@ COPY . /app RUN go get -d -v -# Statically compile our app for use in a distroless container +# Statically compile our app for use in a scratch or debian buster container RUN CGO_ENABLED=0 go build -ldflags="-w -s" -v -o app . +# using multi-stage build FROM debian:buster-slim RUN set -x && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ ca-certificates git bash && \