diff --git a/serving/docker/Dockerfile b/serving/docker/Dockerfile index 69d44f50b..45d37a70c 100644 --- a/serving/docker/Dockerfile +++ b/serving/docker/Dockerfile @@ -63,10 +63,11 @@ FROM base AS cpu-full ARG torch_version=2.3.1 COPY scripts scripts/ +SHELL ["/bin/bash", "-c"] RUN scripts/install_python.sh && \ scripts/install_djl_serving.sh $djl_version $torch_version && \ djl-serving -i ai.djl.pytorch:pytorch-native-cpu:$torch_version:linux-x86_64 && \ - djl-serving -i ai.djl.onnxruntime:onnxruntime-engine:$djl_version && \ + djl-serving -i ai.djl.onnxruntime:onnxruntime-engine:${djl_version//[~]/-} && \ djl-serving -i com.microsoft.onnxruntime:onnxruntime:1.18.0 && \ scripts/patch_oss_dlc.sh python && \ echo "${djl_version} cpufull" > /opt/djl/bin/telemetry && \