diff --git a/deploy/docker/Dockerfile b/deploy/docker/Dockerfile index 1bc647f63..f0b1b28c1 100644 --- a/deploy/docker/Dockerfile +++ b/deploy/docker/Dockerfile @@ -135,6 +135,10 @@ WORKDIR /lowcoder-client/packages/lowcoder-sdk RUN yarn install RUN yarn build +WORKDIR /lowcoder-client/packages/lowcoder-sdk-webpack-bundle +RUN yarn install +RUN yarn build + ## ## Intermediary Lowcoder client image ## @@ -156,6 +160,8 @@ COPY --chown=lowcoder:lowcoder --from=build-client /lowcoder-client/packages/low COPY --chown=lowcoder:lowcoder --from=build-client /lowcoder-client/packages/lowcoder-comps/lowcoder-comps /lowcoder/client-comps # Copy lowcoder SDK COPY --chown=lowcoder:lowcoder --from=build-client /lowcoder-client/packages/lowcoder-sdk /lowcoder/client-sdk +# Copy lowcoder SDK webpack bundle +COPY --chown=lowcoder:lowcoder --from=build-client /lowcoder-client/packages/lowcoder-sdk-webpack-bundle/dist /lowcoder/client-embed # Copy additional nginx init scripts diff --git a/deploy/docker/frontend/server.conf b/deploy/docker/frontend/server.conf index 91fd18cab..d9a9e7d47 100644 --- a/deploy/docker/frontend/server.conf +++ b/deploy/docker/frontend/server.conf @@ -26,6 +26,13 @@ expires 1M; } + location /embed { + try_files $uri =404; + + alias /lowcoder/client-embed; + expires 1M; + } + location /assets { try_files $uri =404;