-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
24 lines (17 loc) · 649 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
FROM python:3.6.5-alpine
ARG TERRAFORM_VERSION=0.11.10
ARG HASHICORP_RELEASES=https://releases.hashicorp.com
RUN apk add --no-cache --update \
ca-certificates \
openssl
RUN wget ${HASHICORP_RELEASES}/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -O /tmp/terraform.zip && \
unzip -d /usr/bin /tmp/terraform.zip && \
rm /tmp/terraform.zip && \
chmod +x /usr/bin/terraform
COPY requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
COPY . /terrestrial
RUN chown -R nobody:nobody /terrestrial
USER nobody
WORKDIR /terrestrial
ENTRYPOINT ["/terrestrial/entrypoint.sh"]