-
Notifications
You must be signed in to change notification settings - Fork 31
/
Dockerfile-ray-node
37 lines (30 loc) · 1.36 KB
/
Dockerfile-ray-node
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
FROM registry.access.redhat.com/ubi9-minimal:9.4@sha256:104cf11d890aeb7dd5728b7d7732e175a0e4018f1bb00d2faebcc8f6bf29bd52
RUN microdnf install -y python3.11-3.11.7 python3.11-devel-3.11.7 vim-enhanced-8.2.2637 wget-1.21.1 &&\
microdnf clean all
RUN ln -s /usr/bin/python3.11 /usr/local/bin/python3 && \
ln -s /usr/bin/python3.11 /usr/local/bin/python &&\
ln -s /usr/bin/pip3.11 /usr/local/bin/pip3 &&\
ln -s /usr/bin/pip3.11 /usr/local/bin/pip
# set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /
USER 0
RUN mkdir /data && chown 1000:1000 /data
RUN mkdir /function_data && chown 1000:1000 /function_data
COPY client ./qs
WORKDIR /qs
# Need versions of pip/setuptools more recent than provided by UBI image
RUN python3.11 -m ensurepip --upgrade
# hadolint ignore=DL3013
RUN pip install --upgrade --no-cache-dir pip>=24.2 &&\
pip install --upgrade --no-cache-dir setuptools>=72.1.0
RUN pip install -r requirements.txt --no-cache-dir &&\
pip install . --no-cache-dir &&\
pip install --no-cache-dir pyarrow==14.0.1 &&\
pip install --no-cache-dir certifi==2024.7.4 &&\
cp -r -n /usr/local/lib64/python3.11/site-packages/symengine /usr/local/lib/python3.11/site-packages &&\
cp -r -n /usr/local/lib/python3.11/site-packages/symengine /usr/local/lib64/python3.11/site-packages
WORKDIR /
RUN rm -r ./qs
USER 1000