Commit 94665f28 authored by Sean Holung's avatar Sean Holung
Browse files

reduce base image size

parent 7e293e09
FROM golang:1.13.0
# Install Pulumi
RUN curl -fsSL https://get.pulumi.com/ | bash && \
mv ~/.pulumi/bin/* /usr/bin
FROM debian:stretch-slim
# Install node
RUN apt-get update -y && \
apt-get install curl -y && \
apt-get install sudo -y && \
apt-get install apt-transport-https ca-certificates -y && \
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - && \
apt-get install -y nodejs
# Install Pulumi
RUN curl -fsSL https://get.pulumi.com/ | sh && \
mv ~/.pulumi/bin/* /usr/bin
# Install gcloud CLI
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - && apt-get update -y && apt-get install google-cloud-sdk -y
RUN echo "deb https://packages.cloud.google.com/apt cloud-sdk main" > /etc/apt/sources.list.d/google-cloud-sdk.list && \
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \
apt-get update && \
apt-get install -y google-cloud-sdk
# Install kubectl
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.14.6/bin/linux/amd64/kubectl
RUN chmod +x ./kubectl
RUN mv ./kubectl /usr/bin
......@@ -24,8 +29,8 @@ RUN useradd -g 61000 -l -m -s /bin/false -u 61000 docker
USER docker
# Confirm we have all necessary installs on our path.
RUN pulumi version
RUN gcloud version
RUN pulumi version
RUN npm -v
RUN kubectl version --client=true --short=true
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment