build: 完善一键部署脚本
This commit is contained in:
+2
-1
@@ -1,9 +1,10 @@
|
||||
# ---- Build Stage ----
|
||||
FROM node:20-alpine AS builder
|
||||
|
||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json* ./
|
||||
RUN npm ci
|
||||
RUN npm config set registry https://registry.npmmirror.com && npm ci
|
||||
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
Reference in New Issue
Block a user