Skip to content

Commit

Permalink
Add separate Dockerfile for aarch64 (Apple silicon, etc) per tnballo#5.…
Browse files Browse the repository at this point in the history
… No rr, it's x86 only
  • Loading branch information
tnballo committed Apr 5, 2022
1 parent 3612ad1 commit f8f1e57
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# x86_64
FROM rust:1.59-slim

# Non-Rust tooling
Expand All @@ -16,6 +17,7 @@ RUN DEBIAN_FRONTEND="noninteractive" apt-get update && apt-get install -y \
# Rust tooling
RUN rustup toolchain install nightly
RUN rustup component add llvm-tools-preview
RUN cargo install mdbook
RUN cargo install cargo-fuzz
RUN cargo install cargo-binutils
RUN cargo install cargo-modules
Expand Down
28 changes: 28 additions & 0 deletions docker_aarch64/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# aarch64 (Apple silicon, etc)
FROM arm64v8/rust:1.59-slim

# Non-Rust tooling
ENV TZ=US/New_York
RUN apt-get update -y
RUN DEBIAN_FRONTEND="noninteractive" apt-get update && apt-get install -y \
build-essential \
libssl-dev \
pkg-config \
tree \
xxd \
git \
vim

# Rust tooling
RUN rustup toolchain install nightly
RUN rustup component add llvm-tools-preview
RUN cargo install mdbook
RUN cargo install cargo-fuzz
RUN cargo install cargo-binutils
RUN cargo install cargo-modules
RUN cargo install cargo-audit

# Src import
RUN mkdir /code_snippets
WORKDIR /code_snippets
COPY ./code_snippets /code_snippets/

0 comments on commit f8f1e57

Please sign in to comment.