az-cli docker
-FROM alpine:latest
+FROM mcr.microsoft.com/azure-cli
LABEL maintainer="Microsoft"
@@ -10,9 +10,11 @@ ENV REQUEUE_AFTER "30"
ENV AZURE_OPERATOR_KEYVAULT "${AZURE_OPERATOR_KEYVAULT}"
ENV KUBECONFIG "./config"
+RUN az login --service-principal -u '${AZURE_CLIENT_ID}' -p '{AZURE_CLIENT_SECRET}' --tenant '{AZURE_TENANT_ID}'
+# RUN az keyvault secret download --file ./config
+
WORKDIR /
-COPY $KUBECONFIG .
COPY manager .
ENTRYPOINT ["/manager"]
\ No newline at end of file
