Skip to content

Commit 8d1d823

Browse files
committed
feat: support additional compression methods in the sidecar image
Signed-off-by: Niccolò Fei <[email protected]>
1 parent 51e4dc0 commit 8d1d823

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

containers/Dockerfile.sidecar

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@ RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache
4040
FROM python:3.13-slim AS pythonbuilder
4141
COPY containers/sidecar-requirements.txt .
4242
RUN apt-get update && \
43-
apt-get install -y postgresql-common build-essential && \
43+
apt-get install -y postgresql-common build-essential zstd lz4 && \
4444
/usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y && \
4545
apt-get install -y libpq-dev && \
4646
pip install -r sidecar-requirements.txt
4747
# Prepare a new /usr/ directory with the files we'll need in the final image
4848
RUN mkdir /new-usr/ && \
4949
cp -r --parents /usr/local/lib/ /usr/lib/*-linux-gnu/ /usr/local/bin/ \
50-
/new-usr/
50+
/usr/bin/*xz* /usr/bin/lzmainfo /usr/bin/*lz4* /usr/bin/*zstd* \
51+
/new-usr/
5152

5253
# Joint process
5354
# Now we put everything that was build from the origin into our

0 commit comments

Comments
 (0)