diff --git a/Dockerfile b/Dockerfile index 29f04a0..0d6e57e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,12 @@ ARG GO_VERSION=1.23.1 ARG GOLANGCI_LINT_VERSION=1.61.0 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 && \ rm -rf /usr/local/go && \ tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz && \