feat: add rule for autopulicate widget/widget.js as pub.js
This commit is contained in:
parent
6e1517ed7d
commit
93ad96123c
@ -6,10 +6,11 @@ COPY . .
|
|||||||
|
|
||||||
RUN yarn install --ignore-scripts --non-interactive --frozen-lockfile && yarn cache clean
|
RUN yarn install --ignore-scripts --non-interactive --frozen-lockfile && yarn cache clean
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
RUN yarn build:widget
|
||||||
|
|
||||||
|
|
||||||
FROM nginx:latest as result
|
FROM nginx:latest as result
|
||||||
WORKDIR /usr/share/nginx/html
|
WORKDIR /usr/share/nginx/html
|
||||||
COPY --from=build /usr/app/dist/ /usr/share/nginx/html
|
COPY --from=build /usr/app/dist/ /usr/share/nginx/html
|
||||||
COPY pub.js /usr/share/nginx/html/export/pub.js
|
COPY --from=build /usr/app/widget/widget.js /usr/share/nginx/html/export/pub.js
|
||||||
COPY hub.conf /etc/nginx/conf.d/default.conf
|
COPY hub.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user