Skip to content

Commit

Permalink
fix: Cornucopia requires musl build
Browse files Browse the repository at this point in the history
  • Loading branch information
242816 authored Nov 14, 2024
1 parent 6a65fc5 commit 1094bad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dev-env-as-code/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ RUN case "${TARGETARCH}" in \
&& cp cargo-binstall /usr/local/cargo/bin/ \
&& rm cargo-binstall-${ARCH}.tgz

RUN cargo binstall --no-confirm cornucopia

FROM rust:slim-bookworm

ARG TARGETOS
Expand Down Expand Up @@ -157,11 +155,13 @@ USER $USERNAME
# Copy the binaries we built in builder container
COPY --chown=$USERNAME --from=builder /home/cargo-watch $CARGO_HOME/bin
#COPY --chown=$USERNAME --from=builder /usr/local/cargo/bin/cargo-chef $CARGO_HOME/bin
COPY --chown=$USERNAME --from=builder /usr/local/cargo/bin/cornucopia $CARGO_HOME/bin
COPY --chown=$USERNAME --from=builder /usr/local/cargo/bin/cargo-binstall $CARGO_HOME/bin


# Pulumi
RUN curl -fsSL https://get.pulumi.com | sudo -E bash - \
&& sudo chown -R $USERNAME:$USERNAME /home/$USERNAME/.pulumi

# Compile here as it requires musl.
RUN cargo binstall --no-confirm cornucopia

0 comments on commit 1094bad

Please sign in to comment.