From 3929352e4546ff77ae0bc7274785fdf227f9e413 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 20 Sep 2022 14:03:28 +0300 Subject: [PATCH] Add rustup to dockerfile --- Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ed0684aec..0f2fdabda 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,10 +14,19 @@ RUN apt-get update && apt-get install -y \ zlib1g-dev \ openssl \ git \ + curl \ && rm -rf /var/lib/apt/lists/* +ENV RUSTUP_HOME=/rust +ENV CARGO_HOME=/cargo +ENV PATH=/cargo/bin:/rust/bin:$PATH +RUN mkdir /rust /cargo + +RUN curl -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain stable + COPY synapse /synapse/synapse/ -COPY README.rst pyproject.toml requirements.txt /synapse/ +COPY rust /synapse/rust/ +COPY README.rst pyproject.toml requirements.txt build_rust.py /synapse/ RUN pip install --prefix="/install" --no-warn-script-location --ignore-installed \ --no-deps -r /synapse/requirements.txt \