mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-14 19:55:23 -04:00
Add rustup to dockerfile
This commit is contained in:
parent
6a3eb06305
commit
3929352e45
1 changed files with 10 additions and 1 deletions
11
Dockerfile
11
Dockerfile
|
@ -14,10 +14,19 @@ RUN apt-get update && apt-get install -y \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
openssl \
|
openssl \
|
||||||
git \
|
git \
|
||||||
|
curl \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& 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 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 \
|
RUN pip install --prefix="/install" --no-warn-script-location --ignore-installed \
|
||||||
--no-deps -r /synapse/requirements.txt \
|
--no-deps -r /synapse/requirements.txt \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue