1
mirror of https://github.com/xddxdd/bird-lg-go synced 2025-02-25 19:28:08 +01:00

Do not upx pack docker image executables anymore

This commit is contained in:
Lan Tian 2020-03-27 12:03:19 +08:00
parent a6513900e4
commit 0c06a85a93
No known key found for this signature in database
GPG Key ID: 27F31700E751EC22
2 changed files with 6 additions and 6 deletions

View File

@ -5,9 +5,9 @@ LABEL Lan Tian "lantian@lantian.pub"
ENV GOOS=linux GOARCH=${THIS_ARCH_GO}
WORKDIR /root
COPY . .
RUN apk -q --no-cache add go build-base upx \
&& cd /root && go build -o /frontend && upx /frontend \
RUN apk -q --no-cache add go build-base \
&& cd /root && go build -o /frontend \
&& cd / && rm -rf /root/* \
&& apk del --purge go build-base upx
&& apk del --purge go build-base
ENTRYPOINT ["/frontend"]

View File

@ -5,9 +5,9 @@ LABEL Lan Tian "lantian@lantian.pub"
ENV GOOS=linux GOARCH=${THIS_ARCH_GO}
WORKDIR /root
COPY . .
RUN apk -q --no-cache add go build-base upx \
&& cd /root && go build -o /proxy && upx /proxy \
RUN apk -q --no-cache add go build-base \
&& cd /root && go build -o /proxy \
&& cd / && rm -rf /root/* \
&& apk del --purge go build-base upx
&& apk del --purge go build-base
ENTRYPOINT ["/proxy"]