2025-08-25 07:57:08 -04:00
|
|
|
FROM redhat/ubi8:8.10
|
2025-02-20 17:51:57 -05:00
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
2025-02-26 11:39:37 -05:00
|
|
|
RUN yum install -y curl gcc cmake git
|
|
|
|
|
|
|
|
|
|
# Allows running git commands in /app
|
|
|
|
|
RUN git config --global --add safe.directory /app
|
2025-02-20 17:51:57 -05:00
|
|
|
|
2025-08-25 07:57:08 -04:00
|
|
|
RUN yum install -y python39 python39-devel && \
|
2025-02-20 17:51:57 -05:00
|
|
|
yum clean all && \
|
|
|
|
|
rm -rf /var/cache/yum && \
|
|
|
|
|
curl -sS https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
|
2025-08-25 07:57:08 -04:00
|
|
|
python3 get-pip.py
|
2025-02-20 17:51:57 -05:00
|
|
|
|
|
|
|
|
CMD ["/bin/bash", "-c", "\
|
2025-08-25 07:57:08 -04:00
|
|
|
cd /app/projects/rocprofiler-compute \
|
|
|
|
|
&& python3 -m pip install -r requirements.txt \
|
|
|
|
|
&& python3 -m pip install nuitka patchelf \
|
2025-02-20 17:51:57 -05:00
|
|
|
&& rm -rf build \
|
|
|
|
|
&& cmake -B build -S . \
|
|
|
|
|
&& make -C build standalonebinary \
|
2025-06-06 12:43:52 -06:00
|
|
|
"]
|