Skip to content

Commit d3ce741

Browse files
committed
build(docker): use wget for GPG key download and fix LD_PRELOAD variable warning
1 parent 69890ae commit d3ce741

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@ RUN apt-get clean && \
3333
RUN mkdir -p /usr/share/keyrings
3434

3535
# Add PostgreSQL repository with modern GPG keyring approach for postgresql-client-common
36-
# Download and verify GPG key
37-
RUN curl --silent --fail --location https://www.postgresql.org/media/keys/ACCC4CF8.asc -o /tmp/postgresql.asc && \
38-
gpg --dearmor /tmp/postgresql.asc -o /usr/share/keyrings/postgresql-keyring.gpg && \
39-
rm /tmp/postgresql.asc && \
36+
# Download and process GPG key using wget (more reliable for piping)
37+
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \
38+
gpg --dearmor -o /usr/share/keyrings/postgresql-keyring.gpg && \
4039
test -f /usr/share/keyrings/postgresql-keyring.gpg
4140

4241
# Add PostgreSQL repository configuration
@@ -55,4 +54,4 @@ RUN mkdir -p /etc/service/appserver && \
5554
mv /home/app/webapp/config/appserver.sh /etc/service/appserver/run && \
5655
chmod 777 /etc/service/appserver/run
5756

58-
ENV LD_PRELOAD=${LD_PRELOAD:-}:/lib/x86_64-linux-gnu/libjemalloc.so.2
57+
ENV LD_PRELOAD=/lib/x86_64-linux-gnu/libjemalloc.so.2

0 commit comments

Comments
 (0)