Skip to content

Commit

Permalink
updated Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
janpreet committed Aug 8, 2024
1 parent 89d066b commit 5229cc7
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
FROM debian:bullseye-slim

ARG TERRAFORM_VERSION=1.9.3
ARG ANSIBLE_VERSION=10.2.0
ARG ANSIBLE_VERSION=2.6.13

RUN apt-get update && apt-get install -y \
bash \
curl \
gnupg \
unzip \
python3.10 \
python3.10-venv \
python3.10-dev \
python3-pip \
awscli \
&& curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
&& python3.10 get-pip.py \
&& rm get-pip.py

RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 \
&& update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1
&& pip3 install --no-cache-dir --upgrade pip

RUN curl -LO "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip" \
&& unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip \
Expand Down

0 comments on commit 5229cc7

Please sign in to comment.