feat: Add dockerfile (#1531)

This commit is contained in:
lu-yg 2025-07-16 03:11:11 -07:00 committed by GitHub
parent 264aaccd2f
commit 28b7b59a6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM node:18-alpine as build
WORKDIR /app/
ADD . .
RUN npm config set strict-ssl false \
&& npm config set registry https://registry.npmmirror.com/ \
&& npm install pnpm -g \
&& pnpm i \
&& pnpm build:plugin \
&& pnpm build:prod
FROM nginx:latest
COPY --from=build /app/designer-demo/dist/ /usr/share/nginx/html/