github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/deploy/prod/k8s/aisadmin_container/Dockerfile (about)

     1  #
     2  # Dockerfile to build an AIS admin Docker image
     3  #
     4  FROM golang:1.22 AS builder
     5  
     6  ENV GOPATH="/go"
     7  ENV PATH="${GOPATH}/bin:${PATH}"
     8  
     9  RUN git clone https://github.com/NVIDIA/aistore.git && cd aistore && \
    10      make cli xmeta aisloader && \
    11      mv cmd/cli/autocomplete /tmp/autocomplete && \
    12      cd .. && rm -rf aistore
    13  
    14  FROM ubuntu:22.04
    15  
    16  RUN apt-get update -yq
    17  RUN apt-get install -y wget sysstat curl git iputils-ping netcat make coreutils net-tools iproute2 tcptrack vim \
    18      && apt-get clean \
    19      && rm -rf /var/lib/apt/lists/*
    20  
    21  RUN mkdir -p /usr/local/bin
    22  ENV PATH="/usr/local/bin:${PATH}"
    23  
    24  # Copy over the binaries.
    25  COPY --from=builder /go/bin /usr/local/bin/
    26  
    27  # Install autocomplete.
    28  COPY --from=builder /tmp/autocomplete /tmp/autocomplete
    29  RUN /tmp/autocomplete/install.sh && echo "source /tmp/autocomplete/bash" >> ~/.bashrc
    30  
    31  WORKDIR /
    32  
    33  CMD tail -f /dev/null