feat: add ci

This commit is contained in:
2026-05-14 22:09:37 +08:00
parent 49f54a2168
commit 5dbaff904c
4 changed files with 91 additions and 2 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM registry.merlin.xin/library/node:20-bullseye AS build
WORKDIR /app
COPY package*.json ./
RUN --mount=type=cache,target=/root/.npm \
npm install
COPY . .
RUN npm run build
FROM registry.merlin.xin/mirrors/nginxinc/nginx-unprivileged:stable
COPY --from=build /app/dist /app/dist