content: # Copyright 2020 The Merlin Authors
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #      http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  
  FROM condaforge/miniforge3:23.11.0-0
  
  RUN apt-get update && apt-get install unzip
  
  ENV GCLOUD_VERSION=405.0.1
  RUN wget -qO- https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${GCLOUD_VERSION}-linux-x86_64.tar.gz | tar xzf -
  # Install aws CLI
  RUN wget -q https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip && unzip awscli-exe-linux-x86_64.zip && ./aws/install
  
  ENV PATH=$PATH:/google-cloud-sdk/bin
  
  ENV GRPC_HEALTH_PROBE_VERSION=v0.4.4
  RUN wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \
      chmod +x /bin/grpc_health_probe
  
  ENV YQ_VERSION=v4.42.1
  RUN wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 -O /usr/bin/yq && \
      chmod +x /usr/bin/yq
  
  RUN mkdir /prom_dir
  ENV PROMETHEUS_MULTIPROC_DIR=/prom_dir prometheus_multiproc_dir=/prom_dir
  
  COPY pyfunc-server/docker/process_conda_env.sh /bin/process_conda_env.sh
  COPY pyfunc-server/docker/run.sh /bin/run.sh
  