forked from segmentio/stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (21 loc) · 973 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
# Build as: docker build -t aws-stack .
# Run as: docker run --rm -it --net=host \
# -v $PWD:$PWD -w $PWD \
# -v /tmp:/tmp -v ~/.aws:/root/.aws \
# -e AWS_DEFAULT_REGION=us-east-1 aws-stack make amis
FROM python:3.5-slim
RUN pip3 install mypy-lang==0.4 flake8==2.5.4 pyyaml boto3
RUN apt-get update \
&& apt-get install -y curl unzip make \
&& apt-get clean
COPY tools /usr/local/bin
RUN curl -sL "https://releases.hashicorp.com/terraform/0.7.2/terraform_0.7.2_linux_amd64.zip"> terraform.zip \
&& unzip terraform.zip \
&& mv terraform /usr/local/bin
RUN curl -sL "https://releases.hashicorp.com/packer/0.10.1/packer_0.10.1_linux_amd64.zip" > packer.zip \
&& unzip packer.zip \
&& mv packer /usr/local/bin
RUN curl -sL -o /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.1.3/dumb-init_1.1.3_amd64 && chmod +x /usr/local/bin/dumb-init
ENTRYPOINT ["/usr/local/bin/dumb-init"]
ADD . /src
RUN cd /src && make install