File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -324,18 +324,11 @@ RUN apt-get update -y && \
324
324
# Rust environment setup
325
325
ENV RUSTUP_HOME=/usr/local/rustup \
326
326
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
339
332
340
333
# https://code.visualstudio.com/remote/advancedcontainers/add-nonroot-user
341
334
# Will use the default ubuntu user, but give sudo access
You can’t perform that action at this time.
0 commit comments