Add rust toolchain to the dockerfile (#3443)

This commit is contained in:
Gyeongjae Choi 2023-01-10 10:57:07 +09:00 committed by GitHub
parent fd49100981
commit fbc4762fcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 3 deletions

View File

@ -12,10 +12,19 @@ RUN apt-get update \
ninja-build jq \
&& rm -rf /var/lib/apt/lists/*
ADD docs/requirements-doc.txt requirements.txt /
# Normally, it is a bad idea to install rustup and cargo in
# system directories (it should not be shared between users),
# but this docker image is only for building packages, so I hope it is ok.
RUN wget -q -O - https://sh.rustup.rs | \
RUSTUP_HOME=/usr CARGO_HOME=/usr sh -s -- -y --profile minimal --no-modify-path
RUN pip3 --no-cache-dir install -r /requirements.txt \
&& pip3 --no-cache-dir install -r /requirements-doc.txt
ADD requirements.txt docs/requirements-doc.txt /
ADD pyodide-build /pyodide-build
WORKDIR /
RUN pip3 --no-cache-dir install -r requirements.txt \
&& pip3 --no-cache-dir install -r requirements-doc.txt \
&& rm -rf requirements.txt requirements-doc.txt pyodide-build
# Get Chrome and Firefox (borrowed from https://github.com/SeleniumHQ/docker-selenium)