Skip to content

Commit

Permalink
Copy from the correct directory
Browse files Browse the repository at this point in the history
Seems like the rcodesign binary ended up in `/usr/local/cargo`
not /root...
Signed-off-by: Alper Polat <[email protected]>
  • Loading branch information
gitperr committed Feb 5, 2024
1 parent ae4285a commit 5fb85b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
8 changes: 3 additions & 5 deletions 1.20/main/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ RUN \
libc6-riscv64-cross linux-libc-dev-riscv64-cross \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /tmp/osxcross \
&& mkdir -p /root/.cargo
&& mkdir -p /usr/local/cargo/bin

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

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

WORKDIR /app

ENV PATH /root/.cargo/bin:$OSXCROSS_PATH/bin:$PATH

RUN cargo install --git https://github.com/indygreg/apple-platform-rs --branch main --bin rcodesign apple-codesign
ENV PATH /usr/local/cargo/bin:$OSXCROSS_PATH/bin:$PATH

COPY rootfs /
8 changes: 4 additions & 4 deletions 1.21/main/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ RUN \
libc6-riscv64-cross linux-libc-dev-riscv64-cross \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /tmp/osxcross \
&& mkdir -p /root/.cargo

COPY --from=rustbuilder /root/.cargo/bin /root/.cargo/bin
&& mkdir -p /usr/local/cargo/bin
COPY --from=rustbuilder /usr/local/cargo/bin/rcodesign /usr/local/cargo/bin/rcodesign

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

WORKDIR /app

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

COPY rootfs /

0 comments on commit 5fb85b9

Please sign in to comment.