Skip to content

Commit ce6d70a

Browse files
committed
chore(go-dev): upgrade to bookworm
1 parent 8d28d8a commit ce6d70a

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

rootfs/Dockerfile

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM registry.drycc.cc/drycc/base:bullseye
1+
FROM registry.drycc.cc/drycc/base:bookworm
22

33
LABEL name="drycc-go-dev"
44

5-
ENV GO_VERSION=1.20.4
6-
ENV GOLANGCI_LINT_VERSION=v1.53.0
5+
ENV GO_VERSION=1.20
6+
ENV GOLANGCI_LINT_VERSION=v1.53.3
77

88
# This is a huge one-liner to optimize the Docker image layer.
99
# We disable source repos to speed up apt-get update.
@@ -14,26 +14,31 @@ RUN export DEBIAN_FRONTEND=noninteractive \
1414
build-essential \
1515
ca-certificates \
1616
curl \
17-
git-core \
17+
git \
1818
jq \
1919
libffi-dev \
2020
libssl-dev \
21-
man \
21+
man-db \
2222
mercurial \
2323
net-tools \
24-
netcat \
24+
netcat-openbsd \
2525
openssh-client \
2626
procps \
2727
rsync \
2828
ruby \
2929
unzip \
30-
upx \
3130
util-linux \
3231
vim \
3332
wget \
3433
zip \
3534
shellcheck \
36-
etcd \
35+
etcd-server \
36+
&& UPX_VERSION=4.0.2 \
37+
&& OS_ARCH=$(dpkg --print-architecture) \
38+
&& wget https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-${OS_ARCH}_linux.tar.xz \
39+
&& tar -Jxvf upx-${UPX_VERSION}-${OS_ARCH}_linux.tar.xz \
40+
&& cp upx-${UPX_VERSION}-${OS_ARCH}_linux/upx /usr/local/bin \
41+
&& rm -rf upx-${UPX_VERSION}-${OS_ARCH}_linux* \
3742
&& install-stack go $GO_VERSION && . init-stack \
3843
&& curl -o /usr/local/bin/kubectl \
3944
-L "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/$(dpkg --print-architecture)/kubectl" \

0 commit comments

Comments
 (0)