Skip to content

Commit

Permalink
Update ubuntu, liblzma, openssl and sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Jun 10, 2023
1 parent 8f1950e commit 4119047
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:22.04
FROM ubuntu:23.04

ARG TOOLCHAIN

Expand All @@ -17,14 +17,14 @@ RUN curl https://sh.rustup.rs -sSf | \
sh -s -- -y --default-toolchain $TOOLCHAIN && \
/root/.cargo/bin/rustup target add x86_64-unknown-linux-musl

RUN cd /tmp && LIBLZMA_VERSION=5.2.7 && \
RUN cd /tmp && LIBLZMA_VERSION=5.4.3 && \
curl -LO "https://tukaani.org/xz/xz-$LIBLZMA_VERSION.tar.xz" && \
tar xf "xz-$LIBLZMA_VERSION.tar.xz" && cd xz-$LIBLZMA_VERSION && \
CC=musl-gcc ./configure --enable-static --disable-shared --prefix=/usr/local/musl && \
make install

# See https://github.com/openssl/openssl/issues/7207 for "-idirafter" CC setting
RUN cd /tmp && OPENSSL_VERSION=3.0.7 && \
RUN cd /tmp && OPENSSL_VERSION=3.1.1 && \
curl -LO "https://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz" && \
tar xf "openssl-$OPENSSL_VERSION.tar.gz" && cd "openssl-$OPENSSL_VERSION" && \
env CC="musl-gcc -static -idirafter /usr/include/ -idirafter /usr/include/x86_64-linux-gnu/" ./Configure \
Expand All @@ -39,8 +39,8 @@ RUN cd /tmp && ZLIB_VERSION=1.2.13 && \
CC=musl-gcc ./configure --static --prefix=/usr/local/musl && \
make install

RUN cd /tmp && SQLITE_VERSION=sqlite-autoconf-3390400 && \
curl -LO https://www.sqlite.org/2022/$SQLITE_VERSION.tar.gz && \
RUN cd /tmp && SQLITE_VERSION=sqlite-autoconf-3420000 && \
curl -LO https://www.sqlite.org/2023/$SQLITE_VERSION.tar.gz && \
tar xf "$SQLITE_VERSION.tar.gz" && cd "$SQLITE_VERSION" && \
CC=musl-gcc ./configure --enable-static --disable-shared --prefix=/usr/local/musl && \
make install
Expand Down

0 comments on commit 4119047

Please sign in to comment.