Skip to content

Commit 1d12bf6

Browse files
committed
feat: Add dockerfile
1 parent 264aacc commit 1d12bf6

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:18-alpine as build
2+
3+
WORKDIR /app/
4+
ADD . .
5+
RUN npm config set strict-ssl false \
6+
&& npm config set registry https://registry.npmmirror.com/ \
7+
&& npm install pnpm -g \
8+
&& pnpm i \
9+
&& pnpm build:plugin \
10+
&& pnpm build:prod
11+
12+
FROM nginx:latest
13+
COPY --from=build /app/designer-demo/dist/ /usr/share/nginx/html/

0 commit comments

Comments
 (0)