Last active
September 8, 2021 03:24
-
-
Save luanvuhlu/3e737218380f20222db408bd6a036fce to your computer and use it in GitHub Desktop.
Dockerfile Terraform
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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