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

     1  #
     2  # Dockerfile to build an aisnode Docker image
     3  #
     4  
     5  FROM golang:1.22 AS builder
     6  
     7  ARG mode
     8  ARG providers
     9  
    10  ENV GOPATH="/go"
    11  ENV PATH="${GOPATH}/bin:${PATH}"
    12  
    13  RUN mkdir -p /go/src/github.com/NVIDIA/aistore
    14  WORKDIR /go/src/github.com/NVIDIA/aistore
    15  COPY . .
    16  
    17  
    18  RUN MODE=${mode} AIS_BACKEND_PROVIDERS=${providers:-"aws gcp"} make node cli xmeta
    19  
    20  FROM ubuntu:22.04
    21  
    22  RUN apt-get update -yq && apt-get dist-upgrade -y
    23  RUN apt-get install -y --no-install-recommends \
    24  	sysstat \
    25  	attr \
    26  	git \
    27  	make \
    28  	coreutils \
    29  	lsof \
    30  	util-linux \
    31  	bash \
    32  	ca-certificates \
    33  	curl
    34  
    35  RUN cd /opt && git clone https://github.com/etsy/statsd.git
    36  
    37  RUN mkdir -p /usr/local/bin
    38  ENV PATH="/usr/local/bin:${PATH}"
    39  
    40  # Copy over the binaries.
    41  COPY --from=builder /go/bin /usr/local/bin/
    42  
    43  COPY deploy/prod/k8s/aisnode_container/ais_docker_start.sh /ais_docker_start.sh
    44  COPY deploy/prod/k8s/aisnode_container/ais_readiness.sh /ais_readiness.sh
    45  RUN chmod a+x /ais_docker_start.sh /ais_readiness.sh
    46  
    47  CMD ["bash", "-c", "/ais_docker_start.sh"]