frontend 兼容
This commit is contained in:
12
ai-chat-web/Dockerfile
Normal file
12
ai-chat-web/Dockerfile
Normal 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;"]
|
||||
Reference in New Issue
Block a user