From 793a67d6a4c8f7d862932c4c727b60458824fc69 Mon Sep 17 00:00:00 2001 From: Lukas Burkhalter Date: Thu, 3 Oct 2024 10:06:38 +0200 Subject: [PATCH] feat: Install specific version of rustc --- Dockerfile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ee40cf6..0304127 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,29 @@ FROM ubuntu +# Install rust + +ENV RUST_VERSION=1.81.0 + +RUN apt-get update && apt-get install -y \ + curl \ + build-essential + +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + +ENV PATH=/root/.cargo/bin:$PATH + +RUN rustup install ${RUST_VERSION} \ + && rustup default ${RUST_VERSION} + +RUN rustc --version + # Build test suite ARG TEST_SUITE_REPO=https://gitlab.com/sequoia-pgp/openpgp-interoperability-test-suite.git ARG TEST_SUITE_REF=2273f28f86a7407d71cfac34e4fda0a444b4d42a -RUN apt update && apt install -y git rustc cargo clang-15 llvm pkg-config nettle-dev +RUN apt update && apt install -y git clang-15 llvm pkg-config nettle-dev ENV TEST_SUITE_DIR=/test-suite