forked from openshift-metal3/fakefish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Containerfile
26 lines (17 loc) · 865 Bytes
/
Containerfile
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
FROM registry.fedoraproject.org/fedora:35
MAINTAINER Mario Vazquez <[email protected]>
RUN echo -ne "[racadm]\nname=Racadm\nbaseurl=http://linux.dell.com/repo/hardware/dsu/os_dependent/RHEL8_64\nenabled=1\ngpgcheck=0" > /etc/yum.repos.d/racadm.repo
RUN set -x && \
dnf -y update && \
dnf install -y python3 python3-flask python3-requests python3-pyOpenSSL openssl-devel srvadmin-idracadm7 && \
dnf clean all && \
rm -rf /var/cache/yum /var/cache/dnf
RUN mkdir -p /opt/fakefish/
# The stars in the command below will only copy those files if they exist
COPY app/fakefish.py app/cert.pem* app/cert.key* /opt/fakefish/
ADD app/templates /opt/fakefish/templates
ADD dell_scripts /opt/fakefish/custom_scripts
WORKDIR /opt/fakefish/
RUN chown -R 1024 /opt/fakefish/
USER 1024
ENTRYPOINT ["/usr/bin/python3", "-u", "/opt/fakefish/fakefish.py"]