2023-05-29 07:45:07 +00:00
|
|
|
FROM ghcr.io/cross-rs/armv7-unknown-linux-musleabihf:latest
|
|
|
|
|
2023-09-05 08:36:23 +00:00
|
|
|
ENV OPENSSL_VERSION=3.1.2
|
2023-05-29 07:45:07 +00:00
|
|
|
ENV OPENSSL_TARGET=linux-generic32
|
|
|
|
ENV MUSL_PREFIX=arm-linux-musleabihf
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get --assume-yes install \
|
|
|
|
protobuf-compiler \
|
2023-11-28 13:12:18 +00:00
|
|
|
libprotobuf-dev
|
2023-05-29 07:45:07 +00:00
|
|
|
|
|
|
|
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
|