diff --git a/flask_ml_api/Dockerfile b/flask_ml_api/Dockerfile index 8fde6bab9b6bd4841caf386a0a535c9cbf29ea87..19bf108b763ff306509871ab8f69eea3b0e00232 100755 --- a/flask_ml_api/Dockerfile +++ b/flask_ml_api/Dockerfile @@ -1,4 +1,3 @@ -# Ðтап Ñборки FROM pytorch/pytorch:1.10.0-cuda11.3-cudnn8-runtime as build RUN apt-get update && apt-get install -y curl @@ -6,6 +5,8 @@ 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 +ENV PATH="$PATH:$HOME/.cargo/bin" + RUN rustup --version RUN cargo --version @@ -37,4 +38,4 @@ RUN chown -R www-data:www-data /app && chmod -R 755 /app EXPOSE 5000 -CMD ["/opt/myenv/bin/python", "/app/api.py"] +CMD ["/opt/myenv/bin/python", "/app/api.py"] \ No newline at end of file