-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (30 loc) · 1.13 KB
/
Dockerfile
File metadata and controls
38 lines (30 loc) · 1.13 KB
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
37
38
ARG PYTHON_VERSION=312
ARG IMAGE_TAG=9.7-1764607356
FROM registry.access.redhat.com/ubi9/python-${PYTHON_VERSION}:${IMAGE_TAG}
ARG CONSTRAINTS_FILE=requirements_compiled.txt
LABEL name="ray-ubi9-py312-cpu" \
summary="Python 3.12 image based on UBI9 for Ray (CPU only)" \
description="CPU-only Python 3.12 image based on UBI9 for Ray" \
io.k8s.display-name="Python 3.12 base image for Ray (CPU)" \
io.k8s.description="CPU-only Python 3.12 image based on UBI9 for Ray" \
authoritative-source-url="https://github.com/opendatahub-io/distributed-workloads"
USER 0
WORKDIR /opt/app-root/bin
# Update base image and install basic build tools
RUN yum upgrade -y && \
yum install -y \
openblas \
openblas-devel \
make \
findutils \
&& yum clean all && \
rm -rf /var/cache/yum/*
# Copy constraints file
COPY ${CONSTRAINTS_FILE} .
RUN pip install --no-cache-dir \
-c ${CONSTRAINTS_FILE} \
ray[default,data,train,tune,serve]==2.52.1 \
--extra-index-url https://wheels.developerfirst.ibm.com/ppc64le/linux/+simple/
# Restore user workspace
USER 1001
WORKDIR /opt/app-root/src