See https://github.com/cross-rs/cross/wiki/Configuration#builddockerfile for context regarding the $CROSS_BASE_IMAGE environment variable. Here, it resolves to ghcr.io/cross-rs/armv7-unknown-linux-gnueabihf:{{cross_version}} Relies on docker caching instead of pre-building the image. Cross made the change to the GHCR on https://github.com/cross-rs/cross/pull/609 Add newline at EOF for some files.
10 lines
320 B
Docker
10 lines
320 B
Docker
ARG CROSS_BASE_IMAGE
|
|
FROM $CROSS_BASE_IMAGE
|
|
|
|
ENV PKG_CONFIG_ALLOW_CROSS 1
|
|
ENV PKG_CONFIG_PATH /usr/lib/arm-linux-gnueabihf/pkgconfig/
|
|
|
|
RUN dpkg --add-architecture armhf && \
|
|
apt-get update && \
|
|
apt-get install libasound2-dev:armhf -y && \
|
|
apt-get install libjack-jackd2-dev:armhf libjack-jackd2-0:armhf -y \
|