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:
parent
a6513900e4
commit
0c06a85a93
@ -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"]
|
||||
|
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user