diff --git a/frontend/Dockerfile b/frontend/Dockerfile index f676f5f..71dda25 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -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"] diff --git a/proxy/Dockerfile b/proxy/Dockerfile index 407bfb7..dcf07e5 100644 --- a/proxy/Dockerfile +++ b/proxy/Dockerfile @@ -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"]