Skip to content

Commit 6f75b30

Browse files
committed
copy rust from dynamo image
1 parent 3ade9ff commit 6f75b30

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

container/Dockerfile.vllm

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -324,18 +324,11 @@ RUN apt-get update -y && \
324324
# Rust environment setup
325325
ENV RUSTUP_HOME=/usr/local/rustup \
326326
CARGO_HOME=/usr/local/cargo \
327-
PATH=/usr/local/cargo/bin:$PATH \
328-
RUST_VERSION=1.89.0
329-
330-
# Define Rust target based on ARCH_ALT ARG
331-
ARG RUSTARCH=${ARCH_ALT}-unknown-linux-gnu
332-
333-
# Install Rust
334-
RUN wget --tries=3 --waitretry=5 "https://static.rust-lang.org/rustup/archive/1.28.1/${RUSTARCH}/rustup-init" && \
335-
chmod +x rustup-init && \
336-
./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${RUSTARCH} && \
337-
rm rustup-init && \
338-
chmod -R a+w $RUSTUP_HOME $CARGO_HOME
327+
CARGO_TARGET_DIR=/opt/dynamo/target \
328+
PATH=/usr/local/cargo/bin:$PATH
329+
330+
COPY --from=dynamo_base $RUSTUP_HOME $RUSTUP_HOME
331+
COPY --from=dynamo_base $CARGO_HOME $CARGO_HOME
339332

340333
# https://code.visualstudio.com/remote/advancedcontainers/add-nonroot-user
341334
# Will use the default ubuntu user, but give sudo access

0 commit comments

Comments
 (0)