auto-save 2026-05-15 14:47 (+6, ~5)

This commit is contained in:
2026-05-15 14:48:01 +08:00
parent ce04cf4b60
commit 27e200239d
12 changed files with 333 additions and 20 deletions

22
Dockerfile.web Normal file
View File

@@ -0,0 +1,22 @@
FROM node:22-bookworm-slim AS builder
WORKDIR /app
RUN corepack enable && corepack prepare pnpm@10.28.2 --activate
COPY web/package.json web/pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY web ./
ARG NEXT_PUBLIC_API_BASE=/api
ENV NEXT_PUBLIC_API_BASE=${NEXT_PUBLIC_API_BASE}
RUN pnpm build
FROM nginx:1.27-alpine
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/out /usr/share/nginx/html
EXPOSE 80