From 93ad96123cad0b09d7e8ca448321af4eead47bd3 Mon Sep 17 00:00:00 2001 From: skeris Date: Fri, 23 Feb 2024 00:04:11 +0300 Subject: [PATCH] feat: add rule for autopulicate widget/widget.js as pub.js --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6426786..8ecc497 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,10 +6,11 @@ COPY . . RUN yarn install --ignore-scripts --non-interactive --frozen-lockfile && yarn cache clean RUN yarn build +RUN yarn build:widget FROM nginx:latest as result WORKDIR /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