Skip to content

Commit

Permalink
Use /usr/local/bin instead
Browse files Browse the repository at this point in the history
Keep it simpler, we don't need the `cargo` directory.
Signed-off-by: Alper Polat <[email protected]>
  • Loading branch information
gitperr committed Feb 5, 2024
1 parent 5fb85b9 commit 84cf3b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions 1.20/main/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ RUN \
gcc-riscv64-linux-gnu g++-riscv64-linux-gnu libc6-dev-riscv64-cross \
libc6-riscv64-cross linux-libc-dev-riscv64-cross \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /tmp/osxcross \
&& mkdir -p /usr/local/cargo/bin
&& mkdir -p /tmp/osxcross

COPY --from=rustbuilder /usr/local/cargo/bin/rcodesign /usr/local/cargo/bin/rcodesign
COPY --from=rustbuilder /usr/local/cargo/bin/rcodesign /usr/local/bin/rcodesign

ARG PROM_OSX_SDK_URL
ENV OSXCROSS_PATH=/usr/osxcross \
Expand All @@ -52,6 +51,6 @@ RUN \

WORKDIR /app

ENV PATH /usr/local/cargo/bin:$OSXCROSS_PATH/bin:$PATH
ENV PATH $OSXCROSS_PATH/bin:$PATH

COPY rootfs /
7 changes: 3 additions & 4 deletions 1.21/main/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ RUN \
gcc-riscv64-linux-gnu g++-riscv64-linux-gnu libc6-dev-riscv64-cross \
libc6-riscv64-cross linux-libc-dev-riscv64-cross \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /tmp/osxcross \
&& mkdir -p /usr/local/cargo/bin
&& mkdir -p /tmp/osxcross

COPY --from=rustbuilder /usr/local/cargo/bin/rcodesign /usr/local/cargo/bin/rcodesign
COPY --from=rustbuilder /usr/local/cargo/bin/rcodesign /usr/local/bin/rcodesign

ARG PROM_OSX_SDK_URL
ENV OSXCROSS_PATH=/usr/osxcross \
Expand All @@ -52,6 +51,6 @@ RUN \

WORKDIR /app

ENV PATH /usr/local/cargo/bin:$OSXCROSS_PATH/bin:$PATH
ENV PATH $OSXCROSS_PATH/bin:$PATH

COPY rootfs /

0 comments on commit 84cf3b5

Please sign in to comment.