-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (22 loc) · 1.06 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
FROM ubuntu:18.04
RUN apt-get update && \
apt-get install software-properties-common -y
RUN add-apt-repository ppa:longsleep/golang-backports && \
apt-get update && \
apt-get install golang-go nodejs npm curl jq git wget unzip -y
RUN wget https://releases.hashicorp.com/terraform/0.11.14/terraform_0.11.14_linux_386.zip && \
unzip terraform_0.11.14_linux_386.zip && \
mv terraform /usr/local/bin
RUN download_url=$(curl -s https://api.github.com/repos/go-swagger/go-swagger/releases/latest | \
jq -r '.assets[] | select(.name | contains("'"$(uname | tr '[:upper:]' '[:lower:]')"'_amd64")) | .browser_download_url') && \
curl -o /usr/local/bin/swagger -L'#' "$download_url" && \
chmod +x /usr/local/bin/swagger
WORKDIR /root/go/src/github.com/billtrust/meetup-terraform-provider
COPY ./ .
RUN go get -v -insecure ./...
RUN go get github.com/gruntwork-io/terratest/modules/terraform
WORKDIR /root/go/src/github.com/billtrust/meetup-terraform-provider/server
RUN npm i
COPY ./container-scripts /scripts
RUN chmod +x /scripts/*
ENTRYPOINT node index.js