Skip to content

Instantly share code, notes, and snippets.

@luanvuhlu
Last active September 8, 2021 03:24
Show Gist options
  • Save luanvuhlu/3e737218380f20222db408bd6a036fce to your computer and use it in GitHub Desktop.
Save luanvuhlu/3e737218380f20222db408bd6a036fce to your computer and use it in GitHub Desktop.
Dockerfile Terraform
FROM ubuntu:20.04
RUN apt-get update -y
RUN apt-get install -y gnupg software-properties-common curl
## AWS CLI
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
RUN apt install -y unzip
RUN unzip -q awscliv2.zip
RUN ./aws/install
## VIM
RUN apt install -y vim
## Terraform
RUN curl -fsSL https://apt.releases.hashicorp.com/gpg | apt-key add -
RUN apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
RUN apt-get update -y && apt-get install -y terraform
RUN echo $(terraform version)
WORKDIR /opt/app
CMD ["bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment