chirpstack/cross/Dockerfile.aarch64-unknown-linux-musl
Orne Brocaar 8e2eda3d5b Refactor code to use diesel-async.
This still depends on unreleased diesel and diesel-async code. As soon
as new diesel and diesel-async code has been released, we can remove
the [patch.crates-io] from Cargo.toml.
2023-12-11 10:55:35 +00:00

22 lines
873 B
Docker

FROM ghcr.io/cross-rs/aarch64-unknown-linux-musl:latest
ENV OPENSSL_VERSION=3.1.2
ENV OPENSSL_TARGET=linux-aarch64
ENV MUSL_PREFIX=aarch64-linux-musl
RUN apt-get update && \
apt-get --assume-yes install \
protobuf-compiler \
libprotobuf-dev
RUN echo "Building OpenSSL" && \
cd /tmp && \
curl -fLO "https://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz" && \
tar xvzf "openssl-$OPENSSL_VERSION.tar.gz" && cd "openssl-$OPENSSL_VERSION" && \
env CC=$MUSL_PREFIX-gcc ./Configure no-shared no-zlib -fPIC --prefix=/usr/local/$MUSL_PREFIX-target -DOPENSSL_NO_SECURE_MEMORY $OPENSSL_TARGET && \
env C_INCLUDE_PATH=/usr/local/$MUSL_PREFIX/include/ make depend && \
env C_INCLUDE_PATH=/usr/local/$MUSL_PREFIX/include/ make && \
make install_sw && \
rm -r /tmp/*
ENV PKG_CONFIG_PATH=/usr/local/$MUSL_PREFIX-target/lib/pkgconfig