Skip to content

Commit

Permalink
Remove upx from build
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Kutner <[email protected]>
  • Loading branch information
jkutner committed Aug 3, 2023
1 parent e2496a2 commit 75caac9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 75caac9

Please sign in to comment.