Skip to content

Commit

Permalink
handle arm particulars for compile time
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAlcibiades committed Nov 13, 2023
1 parent 08057d5 commit be35242
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ COPY --from=planner /opt/foundry/recipe.json recipe.json
RUN cargo chef cook --release --recipe-path recipe.json
# Up to this point, if our dependency tree stays the same,
# all layers should be cached.

RUN apt-get update -y && apt-get install -y gcc-aarch64-linux-gnu
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc
ENV CFLAGS=-mno-outline-atomics
RUN cargo build --release

FROM debian:bookworm-slim AS foundry-environment
Expand All @@ -35,7 +39,7 @@ COPY --from=builder /opt/foundry/target/release/cast /usr/local/bin/cast
COPY --from=builder /opt/foundry/target/release/anvil /usr/local/bin/anvil
COPY --from=builder /opt/foundry/target/release/chisel /usr/local/bin/chisel

RUN useradd -u 1001 -m foundry
RUN useradd -u 1000 -m foundry

USER foundry

Expand Down

0 comments on commit be35242

Please sign in to comment.