Skip to content

Commit 80ecb7a

Browse files
committed
fix rust environment vars inside container.
1 parent 96e65ce commit 80ecb7a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools_container/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ RUN rm -rf /usr/share/doc
6767
# Create an image from scratch to minimize layers
6868
FROM scratch
6969

70+
# Replicate necessary environment from Rust and Bullseye containers.
71+
ENV RUSTUP_HOME=/usr/local/rustup \
72+
CARGO_HOME=/usr/local/cargo \
73+
PATH=/usr/local/cargo/bin:$PATH \
74+
RUST_VERSION=1.66.1
75+
7076
LABEL maintainer="[email protected]"
7177
ENV RUST_LOG info
7278

0 commit comments

Comments
 (0)