[build] Trim down Dockerfile

Remove the unnecessary packages and the ones that are already installed
as part of dependencies and meta-packages.

Also compile whatever we explicitly link against.
pull/1179/head
Suresh Sundriyal 11 months ago
parent 42056760d0
commit 969bc582a2

@ -6,36 +6,13 @@ LABEL com.github.actions.icon="settings"
LABEL com.github.actions.color="orange"
RUN apk update && apk add --no-cache \
autoconf \
automake \
build-base \
binutils \
curl \
m4 \
git \
make \
libgcc \
musl-dev \
gcc \
g++ \
lz4 \
lz4-dev \
lz4-static \
zip \
zstd \
zstd-dev \
zstd-static \
perl \
autoconf \
automake \
elfutils \
elfutils-dev \
libelf-static \
libexecinfo-dev \
libexecinfo-static \
libtool \
libunwind \
libunwind-dev \
libunwind-static \
linux-headers
libexecinfo-static
RUN mkdir -p /fake.root /extract
@ -78,6 +55,16 @@ RUN curl -sSL https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz | tar xvzC /ex
make install PREFIX=/fake.root && \
cd /extract && rm -rf *
RUN curl -sSL https://github.com/lz4/lz4/archive/refs/tags/v1.9.4.tar.gz | tar xvzC /extract/ && \
cd /extract/lz4* && \
make install PREFIX=/fake.root && \
cd /extract && rm -rf *
RUN curl -sSL https://github.com/facebook/zstd/releases/download/v1.5.5/zstd-1.5.5.tar.gz | tar xvzC /extract/ && \
cd /extract/zstd* && \
make install PREFIX=/fake.root && \
cd /extract && rm -rf *
RUN curl -sSL https://zlib.net/zlib-1.2.13.tar.gz | tar xvzC /extract/ && \
cd /extract/zlib-* && ./configure --prefix=/fake.root && \
make -j2 && \

Loading…
Cancel
Save