Skip to content

Commit

Permalink
builder: upgrade golang-cross build image to version 1.21 (#4729)
Browse files Browse the repository at this point in the history
Co-authored-by: Sandy Xu <[email protected]>
  • Loading branch information
chnliyong and SandyXSD authored Apr 19, 2024
1 parent 6494d30 commit d53f68a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions hack/builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
FROM ghcr.io/gythialy/golang-cross:v1.18.5
FROM ghcr.io/gythialy/golang-cross:v1.21.9-0

ARG APT_MIRROR
RUN sed -i -e "s/deb.debian.org/${APT_MIRROR:-deb.debian.org}/g" \
-e "s/security.debian.org/${APT_MIRROR:-security.debian.org}/g" \
/etc/apt/sources.list && \
apt-get update && apt-get install -y musl-tools && apt -y autoremove && \
apt-get clean && rm -rf /var/cache/apt/* /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apt-get update && apt-get install -y musl-tools && apt -y autoremove && \
apt-get clean && rm -rf /var/cache/apt/* /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
git config --global --add safe.directory /go/src/github.com/juicedata/juicefs

0 comments on commit d53f68a

Please sign in to comment.