-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
32 lines (25 loc) · 1.17 KB
/
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
FROM python:3.8
WORKDIR /opt
# Install Helm
RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
RUN chmod 700 get_helm.sh
RUN ./get_helm.sh
#Install Terraform
RUN wget https://releases.hashicorp.com/terraform/0.13.0/terraform_0.13.0_linux_amd64.zip
RUN unzip -u terraform_0.13.0_linux_amd64.zip
RUN mv terraform /usr/local/bin/terraform
# Install kubectl
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
RUN chmod +x kubectl
RUN mv kubectl /usr/local/bin/kubectl
# Install aws libraries
RUN curl -o aws-iam-authenticator https://amazon-eks.s3.us-west-2.amazonaws.com/1.15.10/2020-02-22/bin/linux/amd64/aws-iam-authenticator
RUN chmod +x aws-iam-authenticator
RUN mv aws-iam-authenticator /usr/local/bin/aws-iam-authenticator
ENV APP_WORKING_DIR /opt/app
ENV GIT_SSH_COMMAND="ssh -o IdentitiesOnly=yes -i /root/.ssh/id_rsa -F /dev/null -oStrictHostKeyChecking=no"
COPY . /opt
RUN pip install -r requirements.txt
RUN apt update && apt install -y jq vim mc tree less
EXPOSE 5000
CMD ["/bin/sh", "-c", "./start_app.sh"]