Skip to content

Commit e043a82

Browse files
authored
build: deploy webui into the docker image (#361)
1 parent d9f8c40 commit e043a82

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717
#
18-
FROM golang:1.23 as build
18+
FROM golang:1.23 AS build
1919

2020
WORKDIR /kvctl
2121

@@ -26,14 +26,23 @@ WORKDIR /kvctl
2626
COPY . .
2727
RUN make
2828

29+
FROM node:22 AS webui-build
2930

30-
FROM ubuntu:focal
31+
WORKDIR /kvctl/webui
32+
33+
COPY ./webui .
34+
35+
RUN npm install && npm run deploy
36+
37+
FROM node:22
3138

3239
WORKDIR /kvctl
3340

3441
COPY --from=build /kvctl/_build/kvctl-server ./bin/
3542
COPY --from=build /kvctl/_build/kvctl ./bin/
3643

44+
COPY --from=webui-build /kvctl/webui/.next/standalone ./webui
45+
3746
VOLUME /var/lib/kvctl
3847

3948
COPY ./LICENSE ./NOTICE ./licenses ./

0 commit comments

Comments
 (0)