- 在 .drone.yml 文件中添加中科大 docker 镜像仓库作为镜像源 - 在 Dockerfile 中将 node 基础镜像替换为中科大镜像仓库的版本 - 通过使用中科大的镜像源,提高构建速度和可靠性
This commit is contained in:
parent
3d024477f9
commit
362c73da34
@ -11,6 +11,7 @@ steps:
|
|||||||
repo: automated-api
|
repo: automated-api
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
|
mirror: https://docker.mirrors.ustc.edu.cn
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# 构建阶段
|
# 构建阶段
|
||||||
FROM node:18-alpine AS builder
|
FROM docker.mirrors.ustc.edu.cn/library/node:18-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ COPY . .
|
|||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# 运行阶段
|
# 运行阶段
|
||||||
FROM node:18-alpine
|
FROM docker.mirrors.ustc.edu.cn/library/node:18-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user