forked from opentiny/tiny-engine
feat: Add dockerfile (#1531)
This commit is contained in:
parent
264aaccd2f
commit
28b7b59a6b
|
|
@ -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/
|
||||
Loading…
Reference in New Issue