Skip to content

Commit 84f8733

Browse files
authored
chore: remove build-essentials from the image build (#121)
A couple of things were fixed in Barman that allow us to remove build-essentials and a bunch of development packages that were only needed during the build process. Closes #117 Signed-off-by: Jonathan Gonzalez V <[email protected]>
1 parent 6e1a5af commit 84f8733

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

Debian/Dockerfile-beta.template

-14
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,13 @@ RUN set -xe; \
4141
RUN set -xe; \
4242
apt-get update; \
4343
apt-get install -y --no-install-recommends \
44-
# We require build dependencies to build snappy 0.6
45-
# on Python 3.11 or greater.
46-
# TODO: Remove build deps once barman unpins the snappy version or
47-
# https://github.com/EnterpriseDB/barman/issues/905 is completed
48-
build-essential python3-dev libsnappy-dev \
4944
python3-pip \
5045
python3-psycopg2 \
5146
python3-setuptools \
5247
; \
5348
pip3 install %%PIP_OPTIONS%% --upgrade pip; \
5449
# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved
5550
pip3 install %%PIP_OPTIONS%% --no-deps -r requirements.txt; \
56-
# We require build dependencies to build snappy 0.6
57-
# on Python 3.11 or greater.
58-
# TODO: Remove build deps once barman unpins the snappy version or
59-
# https://github.com/EnterpriseDB/barman/issues/905 is completed
60-
apt-get remove -y --purge --autoremove \
61-
build-essential \
62-
python3-dev \
63-
libsnappy-dev \
64-
; \
6551
rm -rf /var/lib/apt/lists/*;
6652

6753
# Change the uid of postgres to 26

Debian/Dockerfile.template

-14
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,13 @@ RUN set -xe; \
4343
RUN set -xe; \
4444
apt-get update; \
4545
apt-get install -y --no-install-recommends \
46-
# We require build dependencies to build snappy 0.6
47-
# on Python 3.11 or greater.
48-
# TODO: Remove build deps once barman unpins the snappy version or
49-
# https://github.com/EnterpriseDB/barman/issues/905 is completed
50-
build-essential python3-dev libsnappy-dev \
5146
python3-pip \
5247
python3-psycopg2 \
5348
python3-setuptools \
5449
; \
5550
pip3 install %%PIP_OPTIONS%% --upgrade pip; \
5651
# TODO: Remove --no-deps once https://github.com/pypa/pip/issues/9644 is solved
5752
pip3 install %%PIP_OPTIONS%% --no-deps -r requirements.txt; \
58-
# We require build dependencies to build snappy 0.6
59-
# on Python 3.11 or greater.
60-
# TODO: Remove build deps once barman unpins the snappy version or
61-
# https://github.com/EnterpriseDB/barman/issues/905 is completed
62-
apt-get remove -y --purge --autoremove \
63-
build-essential \
64-
python3-dev \
65-
libsnappy-dev \
66-
; \
6753
rm -rf /var/lib/apt/lists/*;
6854

6955
# Change the uid of postgres to 26

0 commit comments

Comments
 (0)