-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (24 loc) · 986 Bytes
/
Dockerfile
File metadata and controls
33 lines (24 loc) · 986 Bytes
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
33
FROM golang:1.24rc1
WORKDIR /telophasecli
COPY ./ /telophasecli
RUN go mod download
# run go install instead so that we can reuse the PATH to from the baseto from
# the base image.
RUN go install
RUN apt-get update
# We need npm to install the CDK and terraform
RUN apt-get install -y npm
RUN npm install -g aws-cdk
# Install Terraform https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli
RUN apt-get install -y gnupg software-properties-common
RUN wget -O- https://apt.releases.hashicorp.com/gpg | \
gpg --dearmor | \
tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null
RUN gpg --no-default-keyring \
--keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg \
--fingerprint
RUN echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \
https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \
tee /etc/apt/sources.list.d/hashicorp.list
RUN apt-get update
RUN apt-get install terraform