Skip to content

Commit 958a531

Browse files
authored
Merge pull request #223 from buildpacks/jkutner/fix-build
Remove upx from build
2 parents e2496a2 + 75caac9 commit 958a531

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
FROM golang:1.19 as build-stage
2-
3-
RUN apt-get update && apt-get install -y --no-install-recommends upx
1+
FROM golang:1.20 as build-stage
42

53
WORKDIR /src
64
ENV GO111MODULE=on CGO_ENABLED=0
@@ -17,8 +15,6 @@ RUN go build \
1715

1816
RUN strip /bin/action
1917

20-
RUN upx -q -9 /bin/action
21-
2218
FROM scratch
2319
COPY --from=build-stage /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
2420
COPY --from=build-stage /bin/action /bin/action

0 commit comments

Comments
 (0)