fix: use Aliyun Alpine mirror in Dockerfiles

Alpine CDN (dl-cdn.alpinelinux.org) unreachable from DinD containers.
Switch to mirrors.aliyun.com for apk package downloads.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Chever John 2026-06-17 10:24:59 +08:00
parent 75f8dca36b
commit 9e25c799d5
No known key found for this signature in database
GPG Key ID: 2894D52ED1211DF0
5 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,7 @@ WORKDIR /app/auth-service
RUN go build -o /auth-service ./cmd/
FROM ${BASE_REGISTRY}/alpine:3.20
RUN sed -i "s|dl-cdn.alpinelinux.org|mirrors.aliyun.com|g" /etc/apk/repositories
RUN apk add --no-cache wget
COPY --from=builder /auth-service /auth-service
EXPOSE 8081

View File

@ -8,6 +8,7 @@ WORKDIR /app/gateway
RUN go build -o /gateway ./cmd/
FROM ${BASE_REGISTRY}/alpine:3.20
RUN sed -i "s|dl-cdn.alpinelinux.org|mirrors.aliyun.com|g" /etc/apk/repositories
RUN apk add --no-cache wget
COPY --from=builder /gateway /gateway
EXPOSE 8080

View File

@ -8,6 +8,7 @@ WORKDIR /app/purchaser-service
RUN go build -o /purchaser-service ./cmd/
FROM ${BASE_REGISTRY}/alpine:3.20
RUN sed -i "s|dl-cdn.alpinelinux.org|mirrors.aliyun.com|g" /etc/apk/repositories
RUN apk add --no-cache wget
COPY --from=builder /purchaser-service /purchaser-service
EXPOSE 8082

View File

@ -8,6 +8,7 @@ WORKDIR /app/textile-service
RUN go build -o /textile-service ./cmd/
FROM ${BASE_REGISTRY}/alpine:3.20
RUN sed -i "s|dl-cdn.alpinelinux.org|mirrors.aliyun.com|g" /etc/apk/repositories
RUN apk add --no-cache wget
COPY --from=builder /textile-service /textile-service
EXPOSE 8083

View File

@ -8,6 +8,7 @@ WORKDIR /app/washing-service
RUN go build -o /washing-service ./cmd/
FROM ${BASE_REGISTRY}/alpine:3.20
RUN sed -i "s|dl-cdn.alpinelinux.org|mirrors.aliyun.com|g" /etc/apk/repositories
RUN apk add --no-cache wget
COPY --from=builder /washing-service /washing-service
EXPOSE 8084