From f60067a9689da1b60f5883e312298e7f9b4be178 Mon Sep 17 00:00:00 2001
From: Artem Baranovskyi <artem.baranovsky1980@gmail.com>
Date: Wed, 8 Jan 2025 20:13:06 +0200
Subject: [PATCH] Image build is optimized.

---
 flask_ml_api/Dockerfile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/flask_ml_api/Dockerfile b/flask_ml_api/Dockerfile
index a6725aa..58fabee 100755
--- a/flask_ml_api/Dockerfile
+++ b/flask_ml_api/Dockerfile
@@ -3,11 +3,9 @@ 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 /usr/local/bin/rustup toolchain install stable --profile minimal --no-self-update
 
-RUN /usr/local/bin/rustup --version
-RUN /usr/local/bin/cargo --version
+RUN /root/.cargo/bin/rustup --version
+RUN /root/.cargo/bin/cargo --version
 
 RUN apt-get update && apt-get install -y --no-install-recommends \
     build-essential python3-venv && \
-- 
GitLab