mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
docker: export RUSTUP/CARGO_HOME in container
The rust binaries (rustc) needs those variables to be defined to work properly.
This commit is contained in:
parent
2976046506
commit
8a85aa6eba
2 changed files with 3 additions and 4 deletions
|
@ -1,6 +1,8 @@
|
|||
FROM registry.fedoraproject.org/fedora:30
|
||||
|
||||
ENV PATH=/usr/local/cargo/bin:$PATH
|
||||
ENV RUSTUP_HOME=/usr/local/rustup \
|
||||
CARGO_HOME=/usr/local/cargo \
|
||||
PATH=/usr/local/cargo/bin:$PATH
|
||||
|
||||
COPY prepare.sh cleanup.sh /root/
|
||||
|
||||
|
|
|
@ -202,9 +202,6 @@ RUSTUP_VERSION=1.21.0
|
|||
RUST_VERSION=1.40.0
|
||||
RUST_ARCH="x86_64-unknown-linux-gnu"
|
||||
|
||||
# rustup-init uses those variables as install paths
|
||||
export RUSTUP_HOME=/usr/local/rustup
|
||||
export CARGO_HOME=/usr/local/cargo
|
||||
dnf install -y wget
|
||||
RUSTUP_URL=https://static.rust-lang.org/rustup/archive/$RUSTUP_VERSION/$RUST_ARCH/rustup-init
|
||||
wget $RUSTUP_URL
|
||||
|
|
Loading…
Reference in a new issue