forked from carrier-io/installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (22 loc) · 861 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
FROM ubuntu:18.04
ENV TERRAFORM_VERSION=0.12.25
RUN set -x && \
apt-get update -y && \
apt-get install --no-install-recommends -y \
software-properties-common apt-transport-https unzip ca-certificates curl wget python3.6 python3-pip dnsutils && \
add-apt-repository ppa:ansible/ansible-2.8 -y && \
apt-get update -y && \
apt-get install ansible -y && \
wget https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/bin && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
COPY . /installer
WORKDIR /installer
RUN pip3 install Flask
ENV FLASK_APP=installer.py
ENV FLASK_ENV=development
EXPOSE 1337
ENTRYPOINT ["python3"]
CMD ["installer.py"]