From 75caac9c42e880d5a2572e9c998aafeae458b088 Mon Sep 17 00:00:00 2001 From: Joe Kutner Date: Thu, 3 Aug 2023 11:03:09 -0500 Subject: [PATCH] Remove upx from build Signed-off-by: Joe Kutner --- Dockerfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index c1fa46a..94fe40c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,4 @@ -FROM golang:1.19 as build-stage - -RUN apt-get update && apt-get install -y --no-install-recommends upx +FROM golang:1.20 as build-stage WORKDIR /src ENV GO111MODULE=on CGO_ENABLED=0 @@ -17,8 +15,6 @@ RUN go build \ RUN strip /bin/action -RUN upx -q -9 /bin/action - FROM scratch COPY --from=build-stage /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=build-stage /bin/action /bin/action