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