feat: install upx
Some checks failed
push / build (push) Failing after 7s

This commit is contained in:
张泊明518370910136 2024-11-06 17:56:02 -05:00
parent 0729f4ee08
commit 5af1c4ffe3
GPG Key ID: CA088E6D9284F870

View File

@ -4,6 +4,12 @@ ARG GO_VERSION=1.23.1
ARG GOLANGCI_LINT_VERSION=1.61.0 ARG GOLANGCI_LINT_VERSION=1.61.0
ENV PATH=$PATH:/usr/local/go/bin:/root/go/bin ENV PATH=$PATH:/usr/local/go/bin:/root/go/bin
RUN sed -i s@/deb.debian.org/@/mirrors.tuna.tsinghua.edu.cn/@g /etc/apt/sources.list.d/debian.sources && \
apt-get update && \
apt-get install -y --no-install-recommends upx && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN wget -q https://studygolang.com/dl/golang/go${GO_VERSION}.linux-amd64.tar.gz && \ RUN wget -q https://studygolang.com/dl/golang/go${GO_VERSION}.linux-amd64.tar.gz && \
rm -rf /usr/local/go && \ rm -rf /usr/local/go && \
tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz && \ tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz && \