Skip to content

Commit

Permalink
Remove lots of weight from worker
Browse files Browse the repository at this point in the history
  • Loading branch information
jspc committed Sep 24, 2022
1 parent d254f0e commit 8a2832e
Showing 1 changed file with 2 additions and 37 deletions.
39 changes: 2 additions & 37 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,38 +1,3 @@
FROM debian:buster-slim
FROM alpine:edge

RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y wget python3-pip golang unzip git && \
wget https://releases.hashicorp.com/terraform/0.12.18/terraform_0.12.18_linux_amd64.zip && \
unzip terraform_0.12.18_linux_amd64.zip -d /usr/bin && \
pip3 install awscli && \
wget https://get.helm.sh/helm-v3.0.2-linux-amd64.tar.gz && \
tar xvf helm-v3.0.2-linux-amd64.tar.gz -C /usr/bin --strip 1 && \
wget https://storage.googleapis.com/kubernetes-release/release/v1.15.0/bin/linux/amd64/kubectl && \
install -m 755 kubectl /usr/bin


# Docker
RUN apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common && \
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && \
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable" && \
apt-get update && \
apt-get install -y docker-ce docker-ce-cli containerd.io

# Latex
RUN apt-get install -y texlive texlive-base texlive-fonts-recommended texlive-fonts-extra texinfo

# glcoud cli
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] 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 --keyring /usr/share/keyrings/cloud.google.gpg add - && \
apt-get update && \
apt-get install -y google-cloud-sdk

# rsync
RUN apt-get install -y rsync

# jq
RUN apt-get install -y jq
RUN apk add --update kubectl docker terraform texlive -full ca-certificates texinfo alpine-sdk bash

0 comments on commit 8a2832e

Please sign in to comment.