-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (28 loc) · 845 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# --->
# ---> Going with Ubuntu's Long Term Support (lts)
# ---> version which is currently 18.04.
# --->
FROM ubuntu:18.04
# --->
# ---> Assume the root user and install git, terraform,
# ---> a time zone manipulator and pythonic tools for
# ---> testing the AWS based infrastructure.
# --->
USER root
RUN apt-get update && apt-get --assume-yes install -qq -o=Dpkg::Use-Pty=0 \
curl \
git \
jq \
tree \
unzip
# --->
# ---> Install the Terraform binary.
# --->
RUN \
curl -o /tmp/terraform.zip https://releases.hashicorp.com/terraform/0.11.9/terraform_0.11.9_linux_amd64.zip && \
unzip /tmp/terraform.zip -d /usr/local/bin && \
chmod a+x /usr/local/bin/terraform && \
rm /tmp/terraform.zip && \
terraform --version
USER ubuntu
WORKDIR /home/ubuntu