forked from osbuild/cloud-image-val
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (21 loc) · 769 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
FROM registry.access.redhat.com/ubi8/python-39:latest
USER 0
# Copy cloud-image-val project
COPY . .
# We need epel for keychain package
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
# Install basic tools
RUN dnf install -y \
wget \
unzip \
keychain
# Install terraform
RUN if [[ $(uname -m) == "aarch64" ]]; \
then wget --quiet https://releases.hashicorp.com/terraform/1.3.7/terraform_1.3.7_linux_arm64.zip; \
else wget --quiet https://releases.hashicorp.com/terraform/1.3.7/terraform_1.3.7_linux_amd64.zip; fi
RUN unzip terraform_1.3.7_linux_*.zip \
&& mv terraform /usr/bin \
&& rm terraform_1.3.7_linux_*.zip
# Install python requirements
RUN pip install -r requirements.txt
CMD ["bash"]