diff --git a/flask_ml_api/Dockerfile b/flask_ml_api/Dockerfile index 58fabee6863d4c06b09c980f474fcb3caed3600d..16458274b99500a265ee5947a8127179109a1ee0 100755 --- a/flask_ml_api/Dockerfile +++ b/flask_ml_api/Dockerfile @@ -3,9 +3,11 @@ FROM pytorch/pytorch:1.10.0-cuda11.3-cudnn8-runtime as build RUN apt-get update && apt-get install -y curl RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o /usr/local/bin/rustup-init.sh RUN chmod +x /usr/local/bin/rustup-init.sh +RUN /usr/local/bin/rustup-init.sh -y --default-toolchain none -RUN /root/.cargo/bin/rustup --version -RUN /root/.cargo/bin/cargo --version +ENV PATH="$PATH:/root/.cargo/bin" + +RUN /root/.cargo/bin/rustup toolchain install stable --profile minimal --no-self-update RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential python3-venv && \