This is an automated email from the ASF dual-hosted git repository.

twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks-controller.git


The following commit(s) were added to refs/heads/unstable by this push:
     new e043a82  build: deploy webui into the docker image (#361)
e043a82 is described below

commit e043a827124523ced41b7bd5098e22a9ecc0ad7a
Author: Twice <[email protected]>
AuthorDate: Wed Oct 8 20:49:32 2025 +0800

    build: deploy webui into the docker image (#361)
---
 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 ./

Reply via email to