@@ -35,14 +35,6 @@ RUN apt-get update && apt-get install -y \
3535 --no-install-recommends && \
3636 rm -rf /var/lib/apt/lists/*
3737
38- # Install a more recent release of protoc (protobuf-compiler in jammy is 4 years old and misses some features)
39- ENV PROTOC_VER="25.2"
40- RUN cd /tmp && \
41- curl -sSL https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VER}/protoc-${PROTOC_VER}-linux-x86_64.zip -o protoc.zip && \
42- unzip protoc.zip && \
43- cp bin/protoc /usr/bin/protoc && \
44- rm -rf *
45-
4638# Install rust using rustup
4739ARG CHANNEL
4840ENV RUSTUP_VER="1.26.0" \
@@ -60,17 +52,25 @@ RUN chmod a+X /root
6052
6153# Convenience list of versions and variables for compilation later on
6254# This helps continuing manually if anything breaks.
63- ENV SSL_VER="1.1.1q " \
55+ ENV SSL_VER="1.1.1w " \
6456 CURL_VER="8.4.0" \
6557 ZLIB_VER="1.3.1" \
6658 PQ_VER="11.12" \
67- SQLITE_VER="3430100" \
59+ SQLITE_VER="3450100" \
60+ PROTOBUF_VER="25.2" \
6861 CC=musl-gcc \
6962 PREFIX=/musl \
7063 PATH=/usr/local/bin:/root/.cargo/bin:$PATH \
7164 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig \
7265 LD_LIBRARY_PATH=$PREFIX
7366
67+ # Install a more recent release of protoc (protobuf-compiler in jammy is 4 years old and misses some features)
68+ RUN cd /tmp && \
69+ curl -sSL https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOBUF_VER}/protoc-${PROTOBUF_VER}-linux-x86_64.zip -o protoc.zip && \
70+ unzip protoc.zip && \
71+ cp bin/protoc /usr/bin/protoc && \
72+ rm -rf *
73+
7474# Set up a prefix for musl build libraries, make the linker's job of finding them easier
7575# Primarily for the benefit of postgres.
7676# Lastly, link some linux-headers for openssl 1.1 (not used herein)
@@ -120,7 +120,7 @@ RUN curl -sSL https://ftp.postgresql.org/pub/source/v$PQ_VER/postgresql-$PQ_VER.
120120 cd .. && rm -rf postgresql-$PQ_VER
121121
122122# Build libsqlite3 using same configuration as the alpine linux main/sqlite package
123- RUN curl -sSL https://www.sqlite.org/2023 /sqlite-autoconf-$SQLITE_VER.tar.gz | tar xz && \
123+ RUN curl -sSL https://www.sqlite.org/2024 /sqlite-autoconf-$SQLITE_VER.tar.gz | tar xz && \
124124 cd sqlite-autoconf-$SQLITE_VER && \
125125 CFLAGS="-DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_SECURE_DELETE -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_ENABLE_RTREE -DSQLITE_USE_URI -DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_JSON1" \
126126 CC="musl-gcc -fPIC -pie" \
0 commit comments