Skip to content

Commit 111b90e

Browse files
build: try to build web separately.
1 parent ee494a5 commit 111b90e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/build-and-push.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,6 @@ jobs:
153153
- name: Docker Buildx (build-and-push)
154154
run: |
155155
sudo sync && echo 3 | sudo tee /proc/sys/vm/drop_caches && free -m
156+
docker buildx build --target web-build --output type=local,dest=./web-build . -f installer/Dockerfile
157+
rm -rf ui/* && cp -r ./web-build/ui/* ui/
156158
docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }} -f installer/Dockerfile

installer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM node:24-alpine AS web-build
22
COPY ui ui
3-
RUN cd ui && \
3+
RUN cd ui && ls -la && if [ -d "dist" ]; then exit 0; fi && \
44
npm install --prefer-offline --no-audit && \
55
npm install -D concurrently && \
66
NODE_OPTIONS="--max-old-space-size=4096" npx concurrently "npm run build" "npm run build-chat" && \

0 commit comments

Comments
 (0)