frontend 兼容

This commit is contained in:
1iaan
2026-04-06 11:38:45 +08:00
parent f433490e0d
commit 94bdba930e
323 changed files with 49507 additions and 34744 deletions

12
ai-chat-web/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM quay.io/0voice/node:lts-alpine AS frontend
RUN npm install pnpm -g
COPY . /app
WORKDIR /app
RUN pnpm bootstrap
RUN pnpm run build-only
FROM quay.io/0voice/nginx:1.25.4 AS web
COPY ./docker/nginx/default.conf /etc/nginx/conf.d/default.conf
COPY --from=frontend /app/dist/ /usr/share/nginx/html/
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]