feat: add new folder

This commit is contained in:
Daniel
2026-03-30 20:49:40 +08:00
commit c7788fdd92
64 changed files with 19910 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
FROM docker.m.daocloud.io/library/node:22-alpine AS builder
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN npm config set registry https://registry.npmmirror.com
WORKDIR /app
COPY apps/web/package.json /app/package.json
COPY apps/web/tsconfig.json /app/tsconfig.json
COPY apps/web/tsconfig.app.json /app/tsconfig.app.json
COPY apps/web/vite.config.ts /app/vite.config.ts
COPY apps/web/index.html /app/index.html
COPY apps/web/src /app/src
RUN npm install && npm run build
FROM docker.m.daocloud.io/library/nginx:1.27-alpine
COPY infrastructure/nginx/default.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/dist /usr/share/nginx/html