Project 'ulrike.pado/asyst-moodle-plugin' was moved to 'knight/asyst-moodle-plugin'. Please update any links and bookmarks that may still have the old path.
Commit 85e9e6b2 authored by Artem Baranovskyi's avatar Artem Baranovskyi
Browse files

Image build is optimized.

parent 8825c466
No related merge requests found
Pipeline #10749 failed with stages
in 3 minutes and 24 seconds
Showing with 6 additions and 8 deletions
+6 -8
......@@ -62,4 +62,4 @@ deploy:
- docker pull 22baar1mst/asyst-nlp-grader:latest
- docker run -d 22baar1mst/asyst-nlp-grader:latest
only:
- master
\ No newline at end of file
- master
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 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 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o /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
ENV PATH="$PATH:$HOME/.cargo/bin"
RUN rustup --version
RUN cargo --version
RUN /usr/local/bin/rustup --version
RUN /usr/local/bin/cargo --version
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential python3-venv && \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment