Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d19e7e9

Browse files
committedMar 10, 2025·
chore: fix lz4 on arm64
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
1 parent f60749a commit d19e7e9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
 

‎Debian/Dockerfile-beta.template

+3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,12 @@ RUN set -xe; \
4545
python3-psycopg2 \
4646
python3-setuptools \
4747
; \
48+
# We require build-essential and python3-dev to build lz4 on arm64 since there isn't a pre-compiled wheel available
49+
apt-get install -y --no-install-recommends build-essential python3-dev; \
4850
pip3 install %%PIP_OPTIONS%% --upgrade pip; \
4951
# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved
5052
pip3 install %%PIP_OPTIONS%% --no-deps -r requirements.txt; \
53+
apt-get remove -y --purge --autoremove build-essential python3-dev; \
5154
rm -rf /var/lib/apt/lists/*;
5255

5356
# Change the uid of postgres to 26

‎Debian/Dockerfile.template

+3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,12 @@ RUN set -xe; \
4747
python3-psycopg2 \
4848
python3-setuptools \
4949
; \
50+
# We require build-essential and python3-dev to build lz4 on arm64 since there isn't a pre-compiled wheel available
51+
apt-get install -y --no-install-recommends build-essential python3-dev; \
5052
pip3 install %%PIP_OPTIONS%% --upgrade pip; \
5153
# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved
5254
pip3 install %%PIP_OPTIONS%% --no-deps -r requirements.txt; \
55+
apt-get remove -y --purge --autoremove build-essential python3-dev; \
5356
rm -rf /var/lib/apt/lists/*;
5457

5558
# Change the uid of postgres to 26

0 commit comments

Comments
 (0)
Please sign in to comment.