Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Commit

Permalink
Change run export to env
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Carter <[email protected]>
  • Loading branch information
cloudnull committed Nov 6, 2022
1 parent c90d0a7 commit 9c360f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base-rustup/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ LABEL description="${summary}" \
org.opencontainers.image.vendor="cloudnull.io" \
org.opencontainers.image.description="${summary}"
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
RUN export PATH="$PATH:/root/.cargo/bin"
ENV PATH="$PATH:/root/.cargo/bin"

FROM ghcr.io/oshied/base-build:focal as focal
ARG name="base-rustup"
Expand All @@ -26,7 +26,7 @@ LABEL description="${summary}" \
org.opencontainers.image.vendor="cloudnull.io" \
org.opencontainers.image.description="${summary}"
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
RUN export PATH="$PATH:/root/.cargo/bin"
ENV PATH="$PATH:/root/.cargo/bin"

FROM ghcr.io/oshied/base-build:jammy as jammy
ARG name="base-rustup"
Expand All @@ -41,4 +41,4 @@ LABEL description="${summary}" \
org.opencontainers.image.vendor="cloudnull.io" \
org.opencontainers.image.description="${summary}"
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
RUN export PATH="$PATH:/root/.cargo/bin"
ENV PATH="$PATH:/root/.cargo/bin"

0 comments on commit 9c360f2

Please sign in to comment.