Skip to content

Commit 69f417b

Browse files
committed
dockerfile: switch upx to znly/upx
Signed-off-by: Steeve Morin <steeve.morin@gmail.com>
1 parent 2effeb4 commit 69f417b

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Dockerfile

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,6 @@ RUN go get -u -v -ldflags '-w -s' \
4747
github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway && \
4848
install -c /go/bin/* ${DESTDIR}/usr/bin/
4949

50-
ENV UPX_VERSION=96433b4e39f230c935cb35e6e9125c1aec3ae29f
51-
RUN git clone --depth 1 --recursive -b devel https://github.com/upx/upx.git /upx
52-
RUN apk add --no-cache ucl-dev
53-
RUN cd /upx && \
54-
make -j2 all
55-
RUN mv /upx/src/upx.out /out/upx
56-
5750

5851
FROM swiftdocker/swift:3.1.1 as swift_builder
5952
RUN apt-get update && \
@@ -77,10 +70,9 @@ RUN find /protoc-gen-swift/ -name 'lib*.so*' -exec patchelf --set-rpath /protoc-
7770
done
7871

7972

80-
FROM alpine:3.6 as packer
81-
RUN apk add --no-cache libstdc++ ucl
73+
FROM znly/upx as packer
8274
COPY --from=protoc_builder /out/ /out/
83-
RUN /out/upx --lzma \
75+
RUN upx --lzma \
8476
/out/usr/bin/* \
8577
/out/usr/local/bin/*
8678
RUN rm -rf \

0 commit comments

Comments
 (0)