From 4c38309c60d0149d5110404bcf3343d27f1b43fa Mon Sep 17 00:00:00 2001 From: Frame Date: Tue, 16 Jul 2024 09:50:37 +0800 Subject: [PATCH] chore: fix koordlet dockerfile (#2134) Signed-off-by: saintube --- docker/koordlet.dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docker/koordlet.dockerfile b/docker/koordlet.dockerfile index 228b4acd9..1a89bfa9d 100644 --- a/docker/koordlet.dockerfile +++ b/docker/koordlet.dockerfile @@ -11,8 +11,8 @@ RUN apt update && apt install -y bash build-essential cmake wget RUN wget https://sourceforge.net/projects/perfmon2/files/libpfm4/libpfm-4.13.0.tar.gz && \ echo "bcb52090f02bc7bcb5ac066494cd55bbd5084e65 libpfm-4.13.0.tar.gz" | sha1sum -c && \ tar -xzf libpfm-4.13.0.tar.gz && \ - rm libpfm-4.13.0.tar.gz -RUN export DBG="-g -Wall" && \ + rm libpfm-4.13.0.tar.gz && \ + export DBG="-g -Wall" && \ make -e -C libpfm-4.13.0 && \ make install -C libpfm-4.13.0 @@ -35,8 +35,7 @@ RUN go build -a -o koordlet cmd/koordlet/main.go FROM --platform=$TARGETPLATFORM nvidia/cuda:11.8.0-base-ubuntu22.04 WORKDIR / -RUN apt-get update && apt-get install -y lvm2 && rm -rf /var/lib/apt/lists/* -RUN apt-get update && apt-get install -y iptables +RUN apt-get update && apt-get install -y lvm2 iptables && rm -rf /var/lib/apt/lists/* COPY --from=builder /go/src/github.com/koordinator-sh/koordinator/koordlet . COPY --from=builder /usr/local/lib /usr/lib ENTRYPOINT ["/koordlet"]