Use domestic container registry mirrors for Drone builds
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
2026-06-19 23:54:06 +08:00
parent e4b754045f
commit 7cc8b589d9
2 changed files with 4 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ trigger:
steps: steps:
- name: build-image - name: build-image
image: docker:27-cli image: docker.m.daocloud.io/library/docker:27-cli
volumes: volumes:
- name: dockersock - name: dockersock
path: /var/run/docker.sock path: /var/run/docker.sock
@@ -18,7 +18,7 @@ steps:
- docker build -t cdchen-frontend:docker . - docker build -t cdchen-frontend:docker .
- name: deploy - name: deploy
image: docker:27-cli image: docker.m.daocloud.io/library/docker:27-cli
volumes: volumes:
- name: dockersock - name: dockersock
path: /var/run/docker.sock path: /var/run/docker.sock

View File

@@ -1,10 +1,10 @@
FROM node:20-alpine AS build FROM docker.m.daocloud.io/library/node:20-alpine AS build
WORKDIR /app WORKDIR /app
COPY package.json package-lock.json* ./ COPY package.json package-lock.json* ./
RUN npm install RUN npm install
COPY . . COPY . .
RUN npm run build RUN npm run build
FROM nginx:1.27-alpine FROM docker.m.daocloud.io/library/nginx:1.27-alpine
COPY --from=build /app/dist /usr/share/nginx/html COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80 EXPOSE 80