Skip to content

Commit

Permalink
add linux headers for kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAlcibiades committed Nov 13, 2023
1 parent 56a207a commit 14f2cf7
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 @@ -20,7 +20,8 @@ COPY --from=planner /opt/foundry /opt/foundry
# Get the lock-like file
COPY --from=planner /opt/foundry/recipe.json recipe.json

RUN apt-get update -y && apt-get install -y gcc-aarch64-linux-gnu
RUN apt-get update -y && apt-get install -y gcc-aarch64-linux-gnu linux-headers-$(uname -r)
RUN apt-get clean && rm -rf /var/lib/apt/lists/*

# Build our project dependencies, not our application!
RUN cargo chef cook --release --recipe-path recipe.json
Expand All @@ -38,6 +39,9 @@ RUN strip /opt/foundry/target/release/forge \

FROM debian:bookworm-slim AS foundry-environment

RUN apt-get update -y && apt-get install -y linux-headers-$(uname -r) git
RUN apt-get clean && rm -rf /var/lib/apt/lists/*

# Foundry tools
COPY --from=builder /opt/foundry/target/release/forge /usr/local/bin/forge
COPY --from=builder /opt/foundry/target/release/cast /usr/local/bin/cast
Expand Down

0 comments on commit 14f2cf7

Please sign in to comment.