From 961941fb81061778ccd408322a248898495972f2 Mon Sep 17 00:00:00 2001 From: Artem Baranovskyi <artem.baranovsky1980@gmail.com> Date: Mon, 6 Jan 2025 20:13:40 +0200 Subject: [PATCH] Image build is optimized. --- flask_ml_api/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flask_ml_api/Dockerfile b/flask_ml_api/Dockerfile index babb246..8fde6ba 100755 --- a/flask_ml_api/Dockerfile +++ b/flask_ml_api/Dockerfile @@ -1,3 +1,4 @@ +# Ðтап Ñборки FROM pytorch/pytorch:1.10.0-cuda11.3-cudnn8-runtime as build RUN apt-get update && apt-get install -y curl @@ -5,6 +6,9 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup-init.sh RUN sh rustup-init.sh -y --default-toolchain none RUN ~/.cargo/bin/rustup toolchain install stable --profile minimal --no-self-update +RUN rustup --version +RUN cargo --version + RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential python3-venv && \ apt-get clean && \ -- GitLab