Files
kuberay/historyserver/Dockerfile.historyserver
Chia-Yi LiangandGitHub d916db072c [History Sever] Use compression library in collector and historyserver (#4899)
* Use compression library in collector and historyserver

* Update test for compression library
2026-06-18 17:09:51 -04:00

32 lines
1.0 KiB
Docker

FROM golang:1.26-bookworm AS builder
ARG GOPROXY=https://proxy.golang.org,direct
ENV GOPROXY=${GOPROXY}
WORKDIR /historyserver
# Copy the go modules and manifests.
COPY go.mod go.mod
COPY go.sum go.sum
# Cache dependencies to avoid re-downloading when only sources change.
RUN go mod download
# Copy the go source.
COPY cmd/historyserver/main.go cmd/historyserver/main.go
# need collector because storage's interface is put in here, will change
# after this is merged
# https://github.com/ray-project/kuberay/pull/4302
COPY pkg/collector/ pkg/collector/
COPY pkg/historyserver/ pkg/historyserver/
COPY pkg/storage/ pkg/storage/
COPY pkg/utils/ pkg/utils/
COPY pkg/eventserver/ pkg/eventserver/
COPY pkg/compression/ pkg/compression/
# Build the historyserver binary.
COPY Makefile Makefile
RUN make buildhistoryserver GOOS=linux GOARCH=amd64
FROM ubuntu:22.04
RUN apt-get update && apt-get upgrade -y && rm -rf /var/cache/apt/ && apt-get install -y ca-certificates
COPY --from=builder /historyserver/output/bin/historyserver /usr/local/bin/historyserver