mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-31 16:36:38 +00:00
Current Dockerfile fails when trying to build from the root of the repo docker build -t kata-monitor -f tools/packaging/kata-monitor/Dockerfile . with "invalid go version '1.23.0': must match format 1.23" Using go 1.23 in the Dockerfile fixes the build error Signed-off-by: Saul Paredes <saulparedes@microsoft.com>
15 lines
517 B
Docker
15 lines
517 B
Docker
# Copyright (c) 2020 Eric Ernst
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
FROM golang:1.23-alpine AS builder
|
|
|
|
RUN apk add --no-cache bash curl git make build-base
|
|
WORKDIR /go/src/github.com/kata-containers/kata-containers/src/runtime
|
|
COPY . /go/src/github.com/kata-containers/kata-containers
|
|
RUN make SKIP_GO_VERSION_CHECK=true monitor
|
|
|
|
FROM alpine:3.14
|
|
COPY --from=builder /go/src/github.com/kata-containers/kata-containers/src/runtime/kata-monitor /usr/bin/kata-monitor
|
|
CMD ["-h"]
|
|
ENTRYPOINT ["/usr/bin/kata-monitor"]
|