generated from 18F/open-source-policy
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (18 loc) · 728 Bytes
/
Dockerfile
File metadata and controls
24 lines (18 loc) · 728 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
FROM alpine:3.20 AS tofu
ADD install-opentofu.sh /install-opentofu.sh
RUN chmod +x /install-opentofu.sh
RUN apk add gpg gpg-agent
RUN ./install-opentofu.sh --install-method standalone --install-path / --symlink-path -
## This is your stage:
# Github actions runs on Ubuntu-latest, use the same thing here
FROM ubuntu:24.10
COPY --from=tofu /tofu /bin/tofu
# Install the ca-certificate package and git
RUN apt-get update && apt-get install -y ca-certificates git
# Add the zscaler certificate to the trusted certs
# GSA man-in-the-middles SSL with this root certificate
COPY .docker/zscaler_cert.pem /usr/local/share/ca-certificates/zscaler.crt
RUN update-ca-certificates
WORKDIR /bin
ENTRYPOINT ["/bin/tofu"]
CMD ["help"]