-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
36 lines (24 loc) · 950 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
25
26
27
28
29
30
31
32
33
34
35
36
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.5-1736404155 as aws-cli-builder
RUN microdnf -y update && \
microdnf -y install unzip gnupg2
# aws-cli
ARG CLI_URL=https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.22.35.zip
WORKDIR /tmp/build
RUN curl -s "${CLI_URL}" -o "awscliv2.zip" && \
curl -s "${CLI_URL}.sig" -o "awscliv2.sig"
ADD aws-cli.public-pgp.key .
RUN gpg --import aws-cli.public-pgp.key && \
gpg --verify awscliv2.sig awscliv2.zip
RUN unzip awscliv2.zip && \
./aws/install --install-dir /opt/awscli --bin-dir /opt/awscli/bin
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.5-1736404155
COPY LICENSE /licenses/LICENSE
# postgres13 for the moment, not ideal.
RUN microdnf -y update && \
microdnf -y install postgresql tar gzip && \
microdnf clean all
USER 1001:1001
COPY --from=aws-cli-builder /opt/awscli /opt/awscli
ENV PATH="$PATH:/opt/awscli/bin"
ADD diag.sh /usr/local/bin
CMD diag.sh