FROM gcr.io/pingcap-public/pingcap/alpine-glibc:alpine-3.14.6

# Download aws-iam-authenticator
RUN wget -O /usr/local/bin/aws-iam-authenticator https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v0.6.11/aws-iam-authenticator_0.6.11_linux_amd64
RUN chmod +x /usr/local/bin/aws-iam-authenticator

# Download gke-gcloud-auth-plugin
RUN wget -qO- https://storage.googleapis.com/cloud-sdk-release/for_packagers/linux/google-cloud-cli-gke-gcloud-auth-plugin_404.0.0.orig_amd64.tar.gz | tar xvz
ENV PATH=$PATH:/google-cloud-sdk/bin

COPY ./build/server/core-svc /core-svc
COPY ./build/server/core-portal /core-portal
COPY ./build/server/provider-cost /provider-cost

CMD ["tail", "-f", "/dev/null"]
