forked from Qiskit/qiskit-serverless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-ray-node
48 lines (39 loc) · 1.23 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
38
39
40
41
42
43
44
45
46
47
48
ARG IMAGE_PY_VERSION=py39
FROM rayproject/ray:2.9.3-$IMAGE_PY_VERSION AS ray-node-amd64
WORKDIR /
USER 0
RUN mkdir /data && chown "$RAY_UID":"$RAY_UID" /data
USER $RAY_UID
COPY --chown=$RAY_UID:$RAY_UID ./client ./qs
WORKDIR /qs
# TODO: certifi version pinned to 2023.7.22. More info in #870
# TODO: pyarrow version pinned to 14.0.1
RUN pip install . --no-cache-dir &&\
pip install --no-cache-dir pyarrow==14.0.1 &&\
pip install --no-cache-dir certifi==2023.7.22
WORKDIR /
RUN rm -r ./qs
FROM rayproject/ray:2.9.3-$IMAGE_PY_VERSION-aarch64 AS ray-node-arm64
WORKDIR /
USER 0
RUN mkdir /data && chown "$RAY_UID":"$RAY_UID" /data
USER $RAY_UID
RUN apt-get -y update &&\
apt-get install --no-install-recommends -y \
gcc=4:9.3.0-1ubuntu2 \
build-essential=12.8ubuntu1
COPY --chown=$RAY_UID:$RAY_UID ./client ./qs
WORKDIR /qs
# TODO: certifi version pinned to 2023.7.22. More info in #870
# TODO: pyarrow version pinned to 14.0.1
RUN pip install . --no-cache-dir &&\
pip install --no-cache-dir pyarrow==14.0.1 &&\
if [ "$TARGETARCH" = "arm64" ] ; \
then pip install --no-cache-dir certifi==2023.7.22 ; \
fi
WORKDIR /
USER 0
RUN rm -r ./qs
USER $RAY_UID
# hadolint ignore=DL3006
FROM ray-node-${TARGETARCH} AS final