release: v0.7.2-beta.2

This commit is contained in:
Neko Ayaka
2025-08-25 03:56:39 +08:00
parent d54aaa6fde
commit 6ffb13da8e
19 changed files with 116 additions and 107 deletions
+15 -6
View File
@@ -1,18 +1,27 @@
FROM node:20-alpine as build-stage
FROM node:24-trixie AS build-stage
WORKDIR /app
RUN apt update && apt install -y ca-certificates curl
RUN update-ca-certificates
RUN apt update && apt install -y python curl
RUN corepack enable
COPY .npmrc package.json pnpm-lock.yaml ./
RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store \
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml ./
RUN --mount=type=cache,id=pnpm-store,target=/root/.turbo \
pnpm install --frozen-lockfile
COPY . .
RUN pnpm build
RUN pnpm -F @proj-airi/stage-web run build && \
pnpm -F @proj-airi/docs run build:base && \
mv ./docs/.vitepress/dist ./apps/stage-web/dist/docs && \
pnpm -F @proj-airi/stage-ui run story:build && \
mv ./packages/stage-ui/.histoire/dist ./apps/stage-web/dist/ui
FROM nginx:stable-alpine as production-stage
FROM nginx:stable-alpine AS production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY --from=build-stage /apps/stage-web/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]