Skip to content

Commit

Permalink
fix(dockerfile): more dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
shakefu committed Nov 9, 2023
1 parent f592c77 commit 8bfa24b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,48 @@ WORKDIR /tmp
# Install required system dependencies
RUN apt-get update -yqq && \
apt-get install -yqq --no-install-recommends \
apt-transport-https \
curl \
git \
gpg \
wget \
zsh && \
apt-get clean -yqq && \
rm -rf /var/lib/apt/lists/*

# Dependencies that pre-commit uses
RUN apt-get update -yqq && apt-get install -yqq \
shellcheck \
&& rm -rf /var/lib/apt/lists/*

# Install VSCode
RUN curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/keyrings/packages.microsoft.gpg && \
echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list && \
apt-get update -yqq && \
apt-get install code && \
&& rm -rf /var/lib/apt/lists/*

# Kubectl apt repository
RUN curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.28/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg && \
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.28/deb/ /' > /etc/apt/sources.list.d/kubernetes.list && \
apt-get update -yqq && \
apt-get install kubectl && \
&& rm -rf /var/lib/apt/lists/*

# Docker apt repository
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker-apt-keyring.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/docker-apt-keyring.gpg] https://download.docker.com/linux/ubuntu jammy stable" > /etc/apt/sources.list.d/docker.list && \
apt-get update -yqq && \
apt-get install docker-ce && \
&& rm -rf /var/lib/apt/lists/*

# Terraform apt repository
RUN curl -fsSL https://apt.releases.hashicorp.com/gpg | gpg --dearmor -o /etc/apt/keyrings/hashicorp-apt-keyring.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/hashicorp-apt-keyring.gpg] https://apt.releases.hashicorp.com jammy main" > /etc/apt/sources.list.d/hashicorp.list && \
apt-get update -yqq && \
apt-get install terraform && \
&& rm -rf /var/lib/apt/lists/*

# A GitHub token is required to use the gh cli tool
ARG GITHUB_TOKEN

Expand Down

0 comments on commit 8bfa24b

Please sign in to comment.