forked from toltec-dev/toolchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (15 loc) · 663 Bytes
/
Dockerfile
File metadata and controls
19 lines (15 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Rust nightly targeting the armv7-hf and aarch64 architectures
ARG FROM
FROM $FROM
RUN echo "bumping on 2025-04-28"
# Install rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y -q \
--default-toolchain none \
&& /root/.cargo/bin/rustup toolchain install nightly --profile minimal --target armv7-unknown-linux-gnueabihf \
&& /root/.cargo/bin/rustup target add aarch64-unknown-linux-gnu
# Add rust binaries to PATH
ENV PATH="$PATH:/root/.cargo/bin"
# Set default build target to armv7
ENV CARGO_BUILD_TARGET="armv7-unknown-linux-gnueabihf"
# Target reMarkable architecture by default
COPY config /root/.cargo/config