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

     1  FROM docker.io/golang:1.22 AS builder
     2  
     3  ARG mode
     4  ARG providers
     5  
     6  ENV GOPATH="/go"
     7  ENV PATH="${GOPATH}/bin:${PATH}"
     8  
     9  RUN mkdir -p /go/src/github.com/NVIDIA/aistore
    10  WORKDIR /go/src/github.com/NVIDIA/aistore
    11  COPY . .
    12  
    13  RUN MODE=${mode} AIS_BACKEND_PROVIDERS=${providers:-"aws gcp"} make node
    14  
    15  FROM docker.io/ubuntu:22.04
    16  
    17  ARG MODE
    18  RUN apt-get clean && apt-get update &&\
    19    set -eux &&\
    20    apt-get --no-install-recommends -y install \
    21        curl \
    22        git \
    23        sysstat \
    24        attr \
    25        lsof \
    26        ca-certificates \
    27        util-linux \
    28        coreutils \
    29        make &&\
    30    apt-get -y clean all
    31  
    32  COPY deploy/dev/local/aisnode_config.sh /etc/ais/aisnode_config.sh
    33  COPY deploy/conf/limits.conf /etc/security/limits.conf
    34  
    35  ENV GOPATH /go
    36  ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
    37  
    38  # Copy over the binaries from the previous stage.
    39  COPY --from=builder /go/bin /go/bin
    40  COPY --from=builder /usr/local/go/bin /usr/local/go/bin
    41  
    42  RUN mkdir -p /etc/ais
    43  RUN mkdir /usr/nvidia
    44  
    45  EXPOSE 8080