Skip to content

Commit

Permalink
chore: use mirror images to improve build speed.
Browse files Browse the repository at this point in the history
  • Loading branch information
kycheng committed Apr 12, 2024
1 parent 844da20 commit b3a6ec1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# syntax=docker/dockerfile-upstream:master
# syntax=docker-mirrors.alauda.cn/docker/dockerfile-upstream:master

ARG RUNC_VERSION=v1.1.12
ARG CONTAINERD_VERSION=v1.7.11
Expand Down Expand Up @@ -38,10 +38,10 @@ FROM ${ALPINE_IMAGE}:edge@sha256:2d01a16bab53a8405876cec4c27235d47455a7b72b75334
FROM alpine-$TARGETARCH AS alpinebase

# xx is a helper for cross-compilation
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
FROM --platform=$BUILDPLATFORM docker-mirrors.alauda.cn/tonistiigi/xx:${XX_VERSION} AS xx

# go base image
FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS golatest
FROM --platform=$BUILDPLATFORM docker-mirrors.alauda.cn/library/golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS golatest

# git stage is used for checking out remote repository sources
FROM --platform=$BUILDPLATFORM ${ALPINE_IMAGE}:${ALPINE_VERSION} AS git
Expand Down

0 comments on commit b3a6ec1

Please sign in to comment.