feat: new file

This commit is contained in:
Daniel
2026-04-12 17:56:12 +08:00
parent d7d892c845
commit a40e565867
6 changed files with 27 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
FROM node:22-alpine AS builder
FROM docker.m.daocloud.io/library/node:22-alpine AS builder
WORKDIR /app
@@ -9,7 +9,7 @@ RUN npm config set registry https://registry.npmmirror.com && npm install
COPY . /app
RUN npm run build
FROM nginx:1.27-alpine
FROM docker.m.daocloud.io/library/nginx:1.27-alpine
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/dist /usr/share/nginx/html