From 28b7b59a6b16158bb4a209d521829baeff980826 Mon Sep 17 00:00:00 2001 From: lu-yg <128358973+lu-yg@users.noreply.github.com> Date: Wed, 16 Jul 2025 03:11:11 -0700 Subject: [PATCH] feat: Add dockerfile (#1531) --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..1de80840e --- /dev/null +++ b/Dockerfile @@ -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/