2024-05-14 10:40:32 +00:00
|
|
|
FROM ghcr.io/cross-rs/armv7-unknown-linux-musleabihf:main
|
2023-05-29 07:45:07 +00:00
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get --assume-yes install \
|
|
|
|
protobuf-compiler \
|
2023-11-28 13:12:18 +00:00
|
|
|
libprotobuf-dev
|
2024-08-26 12:22:35 +00:00
|
|
|
|
|
|
|
ENV MUSL_PREFIX=arm-linux-musleabihf
|
|
|
|
ENV SQLITE_VERSION=3460000
|
|
|
|
|
|
|
|
RUN echo "Building SQLite" && \
|
|
|
|
cd /tmp && \
|
|
|
|
curl -fLO "https://sqlite.org/2024/sqlite-autoconf-$SQLITE_VERSION.tar.gz" && \
|
|
|
|
tar xvzf "sqlite-autoconf-$SQLITE_VERSION.tar.gz" && cd "sqlite-autoconf-$SQLITE_VERSION" && \
|
|
|
|
env CC=$MUSL_PREFIX-gcc ./configure --host=arm-linux --enable-static --prefix=/usr/local/$MUSL_PREFIX-target && \
|
|
|
|
make && make install && \
|
|
|
|
rm -r /tmp/*
|
|
|
|
|
|
|
|
ENV PKG_CONFIG_PATH=/usr/local/$MUSL_PREFIX-target/lib/pkgconfig
|