Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 ./
Expand Down
Loading