Skip to content

Instantly share code, notes, and snippets.

@qtangs
Forked from diegopacheco/Dockerfile
Created April 27, 2019 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qtangs/7bc1dadf45e207d88940a537a157fc21 to your computer and use it in GitHub Desktop.
Save qtangs/7bc1dadf45e207d88940a537a157fc21 to your computer and use it in GitHub Desktop.
Dockerfile - Terraform + Amazon Linux
FROM amazonlinux:latest
WORKDIR /
RUN yum update -y
RUN yum group install "Development Tools" -y
RUN yum install -y git zip wget
RUN wget https://releases.hashicorp.com/terraform/0.11.7/terraform_0.11.7_linux_amd64.zip && unzip terraform_0.11.7_linux_amd64.zip
RUN chmod +x terraform
COPY . .
RUN chmod +x /run.sh
CMD ["/run.sh"]
#!/bin/bash
cd /app/
/terraform init
/terraform apply \
-auto-approve \
-input=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment