fix: use DaoCloud mirror for base images to avoid Docker Hub timeout
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 25s

This commit is contained in:
zyc 2026-04-04 13:14:20 +08:00
parent ec5622534f
commit a7a9fdf4fe
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
FROM python:3.12-slim FROM docker.m.daocloud.io/python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1

View File

@ -1,5 +1,5 @@
# ---- Build Stage ---- # ---- Build Stage ----
FROM node:18-alpine AS builder FROM docker.m.daocloud.io/node:18-alpine AS builder
RUN npm config set registry https://registry.npmmirror.com RUN npm config set registry https://registry.npmmirror.com
@ -10,7 +10,7 @@ COPY . .
RUN npm run build RUN npm run build
# ---- Runtime Stage ---- # ---- Runtime Stage ----
FROM nginx:alpine FROM docker.m.daocloud.io/nginx:alpine
RUN sed -i 's#dl-cdn.alpinelinux.org#mirrors.aliyun.com#g' /etc/apk/repositories RUN sed -i 's#dl-cdn.alpinelinux.org#mirrors.aliyun.com#g' /etc/apk/repositories