diff --git a/docker/Dockerfile b/docker/Dockerfile index 69bf4db938..979c2c3b03 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -146,6 +146,11 @@ COPY --chown=model-server --from=compile-image /home/venv /home/venv COPY --from=compile-image /usr/local/bin/dockerd-entrypoint.sh /usr/local/bin/dockerd-entrypoint.sh ENV PATH="/home/venv/bin:$PATH" +RUN \ + if [ "$USE_ROCM_VERSION" ]; then \ + python -m pip install /opt/rocm/share/amd_smi; \ + fi + RUN chmod +x /usr/local/bin/dockerd-entrypoint.sh \ && chown -R model-server /home/model-server diff --git a/docker/Dockerfile.rocm b/docker/Dockerfile.rocm index 50416825e0..eb7fd8c5b0 100644 --- a/docker/Dockerfile.rocm +++ b/docker/Dockerfile.rocm @@ -126,6 +126,11 @@ COPY --chown=model-server --from=compile-image /home/venv /home/venv COPY --from=compile-image /usr/local/bin/dockerd-entrypoint.sh /usr/local/bin/dockerd-entrypoint.sh ENV PATH="/home/venv/bin:$PATH" +RUN \ + if [ "$USE_ROCM_VERSION" ]; then \ + python -m pip install /opt/rocm/share/amd_smi; \ + fi + RUN chmod +x /usr/local/bin/dockerd-entrypoint.sh \ && chown -R model-server /home/model-server