From 5af1c4ffe39f88e008958d720ed766b93efa3ba2 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Wed, 6 Nov 2024 17:56:02 -0500 Subject: [PATCH] feat: install upx --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) 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 && \