Created
May 11, 2023 12:29
-
-
Save Sir-Photch/02f5dc2571a70c2f5354c301256ca6c6 to your computer and use it in GitHub Desktop.
AArch64 Raspberry Pi OS Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG DEBIAN_FRONTEND=noninteractive | |
FROM busybox:latest | |
ADD https://downloads.raspberrypi.org/raspios_lite_arm64/root.tar.xz / | |
RUN set -xeu && \ | |
mkdir "/rpi-root" && \ | |
tar xaf /root.tar.xz -C /rpi-root | |
FROM scratch | |
COPY --from=0 /rpi-root / | |
RUN set -xeu && \ | |
apt-get update && \ | |
apt-get dist-upgrade -y && \ | |
apt-get autoremove -y --purge && \ | |
apt-get -y autoclean | |
# build-deps | |
RUN set -xeu && \ | |
apt-get install -y libclang-dev libssl-dev clang git curl | |
# rust | |
RUN set -xeu && \ | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal && \ | |
echo "[net]\ngit-fetch-with-cli = true" > /root/.cargo/config | |
ENV PATH="${PATH}:/root/.cargo/bin" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment