This is an automated email from the ASF dual-hosted git repository. twice pushed a commit to branch dockerfile-webui in repository https://gitbox.apache.org/repos/asf/kvrocks-controller.git
commit 0a041cd5fd704505e45be646ba03146dadd805c2 Author: PragmaTwice <[email protected]> AuthorDate: Wed Oct 8 19:37:54 2025 +0800 build: deploy webui into the docker image --- Dockerfile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ea7653e..e1ba4de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -FROM golang:1.23 as build +FROM golang:1.23 AS build WORKDIR /kvctl @@ -26,14 +26,23 @@ WORKDIR /kvctl COPY . . RUN make +FROM node:22 AS webui-build -FROM ubuntu:focal +WORKDIR /kvctl/webui + +COPY ./webui . + +RUN npm install && npm run deploy + +FROM node:22 WORKDIR /kvctl COPY --from=build /kvctl/_build/kvctl-server ./bin/ COPY --from=build /kvctl/_build/kvctl ./bin/ +COPY --from=webui-build /kvctl/webui/.next/standalone ./webui + VOLUME /var/lib/kvctl COPY ./LICENSE ./NOTICE ./licenses ./
