fix(docker): web

This commit is contained in:
Acbox
2026-03-07 15:23:34 +08:00
parent 99657740ad
commit 32f331011d
4 changed files with 263 additions and 276 deletions
+3 -2
View File
@@ -8,6 +8,7 @@ RUN npm install -g pnpm@10
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml ./
COPY packages ./packages
COPY apps ./apps
RUN --mount=type=cache,target=/root/.local/share/pnpm/store \
pnpm install
@@ -18,12 +19,12 @@ ARG VITE_AGENT_URL=/agent
ENV VITE_API_URL=$VITE_API_URL
ENV VITE_AGENT_URL=$VITE_AGENT_URL
WORKDIR /build/packages/web
WORKDIR /build/apps/web
RUN pnpm build
FROM nginx:alpine
COPY --from=builder /build/packages/web/dist /usr/share/nginx/html
COPY --from=builder /build/apps/web/dist /usr/share/nginx/html
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf