Skip to content

Commit

Permalink
Merge pull request #223 from buildpacks/jkutner/fix-build
Browse files Browse the repository at this point in the history
Remove upx from build
  • Loading branch information
jkutner committed Aug 3, 2023
2 parents e2496a2 + 75caac9 commit 958a531
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 958a531

Please sign in to comment.