Skip to content

Commit

Permalink
restrict onnxruntime to amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
lreiher committed Dec 5, 2024
1 parent 8f0902c commit b1df059
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ RUN if [[ -n $TF_VERSION ]]; then \
# install ONNX Runtime
ARG ONNX_RUNTIME_VERSION
RUN if [[ -n $ONNX_RUNTIME_VERSION ]]; then \
pip3 install onnxruntime-gpu==${ONNX_RUNTIME_VERSION}; \
if [[ "$TARGETARCH" == "amd64" ]]; then \
pip3 install onnxruntime-gpu==${ONNX_RUNTIME_VERSION}; \
fi; \
fi

# --- finalization -------------------------------------------------------------------------------
Expand Down

0 comments on commit b1df059

Please sign in to comment.