blob: afcdc39d4b6bebf17e9c607adbedefb497570ea3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
FROM debian:buster
RUN dpkg --add-architecture arm64 && \
apt-get update && \
apt-get install --assume-yes \
curl \
build-essential \
cmake \
g++-aarch64-linux-gnu \
git \
pkg-config \
libdbus-1-dev:arm64 \
libudev-dev:arm64 \
libxkbcommon-dev:arm64 \
libfontconfig1-dev:arm64
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y \
--default-toolchain stable \
--no-modify-path \
--profile minimal
ENV RUSTUP_HOME=/root/.rustup \
CARGO_HOME=/root/.cargo \
PATH=/root/.cargo/bin:$PATH \
PKG_CONFIG_ALLOW_CROSS=1 \
PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig \
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc \
CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc \
RUST_TEST_THREADS=1
RUN rustup target add aarch64-unknown-linux-gnu
|