mirror of
https://github.com/chirpstack/chirpstack.git
synced 2024-12-24 07:16:42 +00:00
e63296573b
This feature makes it possible to select between PostgreSQL and SQLite as database backend using a compile feature-flag. It is not possible to enable both at the same time. --------- Co-authored-by: Momo Bel <plopyomomo@gmail.com>
20 lines
677 B
Docker
20 lines
677 B
Docker
FROM ghcr.io/cross-rs/aarch64-unknown-linux-musl:main
|
|
|
|
RUN apt-get update && \
|
|
apt-get --assume-yes install \
|
|
protobuf-compiler \
|
|
libprotobuf-dev
|
|
|
|
ENV MUSL_PREFIX=aarch64-linux-musl
|
|
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=aarch64-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
|