| # debian.sh --arch 'amd64' out/ 'bookworm' '@1753056000' |
| LABEL maintainer=Sath Inc. |
| LABEL description=This image contains cli tools for IDHub |
| COPY idhub-scripts /idhub-scripts # buildkit |
| RUN /bin/sh -c chmod +x /idhub-scripts/*.sh # buildkit |
| RUN /bin/sh -c apt-get update && apt-get install -y curl openssl ca-certificates jq postgresql-client bind9-dnsutils && curl -O https://downloads.mongodb.com/compass/mongosh-1.10.0-linux-x64.tgz && tar -zxvf mongosh-1.10.0-linux-x64.tgz && mv mongosh-1.10.0-linux-x64/bin/mongosh /usr/local/bin/ && rm -rf mongosh-1.10.0-linux-x64.tgz mongosh-1.10.0-linux-x64 && curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl" && chmod +x kubectl && mv kubectl /usr/local/bin/kubectl && mkdir /.mongodb && chown 1001:1001 /.mongodb && chmod 755 /.mongodb # buildkit |
| RUN /bin/sh -c apt-get install -y openjdk-17-jre-headless && curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 && chmod 700 get_helm.sh && ./get_helm.sh && rm get_helm.sh && mkdir /.config /.cache && chown 1001:1001 /.config /.cache && chmod 755 /.config /.cache && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c curl https://dl.min.io/client/mc/release/linux-amd64/mc -o /bin/mc && chmod +x /bin/mc && mkdir /.mc && chown 1001:1001 /.mc && chmod 755 /.mc # buildkit |
| USER 1001 |
| ENTRYPOINT ["kubectl"] |
| CMD ["--help"] |