Skip to content

Commit a69c927

Browse files
committed
new: add webpack bundle for embedding lowcoder in plain html
1 parent 5da6e7a commit a69c927

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

deploy/docker/Dockerfile

+6
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ WORKDIR /lowcoder-client/packages/lowcoder-sdk
135135
RUN yarn install
136136
RUN yarn build
137137

138+
WORKDIR /lowcoder-client/packages/lowcoder-sdk-webpack-bundle
139+
RUN yarn install
140+
RUN yarn build
141+
138142
##
139143
## Intermediary Lowcoder client image
140144
##
@@ -156,6 +160,8 @@ COPY --chown=lowcoder:lowcoder --from=build-client /lowcoder-client/packages/low
156160
COPY --chown=lowcoder:lowcoder --from=build-client /lowcoder-client/packages/lowcoder-comps/lowcoder-comps /lowcoder/client-comps
157161
# Copy lowcoder SDK
158162
COPY --chown=lowcoder:lowcoder --from=build-client /lowcoder-client/packages/lowcoder-sdk /lowcoder/client-sdk
163+
# Copy lowcoder SDK webpack bundle
164+
COPY --chown=lowcoder:lowcoder --from=build-client /lowcoder-client/packages/lowcoder-sdk-webpack-bundle/dist /lowcoder/client-embed
159165

160166

161167
# Copy additional nginx init scripts

deploy/docker/frontend/server.conf

+7
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
expires 1M;
2727
}
2828

29+
location /embed {
30+
try_files $uri =404;
31+
32+
alias /lowcoder/client-embed;
33+
expires 1M;
34+
}
35+
2936
location /assets {
3037
try_files $uri =404;
3138

0 commit comments

Comments
 (0)