Skip to content

Commit 85bae79

Browse files
committed
Use c-ares dns by default
Signed-off-by: Hao S <hao@turnkey.com>
1 parent 8fc9e72 commit 85bae79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ARG PGBOUNCER_VERSION
2323
# Install build dependencies.
2424
RUN set -ex; \
2525
apt-get update && apt-get upgrade -y; \
26-
apt-get install -y --no-install-recommends curl make pkg-config libevent-dev build-essential libssl-dev libudns-dev openssl ; \
26+
apt-get install -y --no-install-recommends curl make pkg-config libevent-dev build-essential libssl-dev libudns-dev libc-ares2 libc-ares-dev openssl ; \
2727
apt-get purge -y --auto-remove ; \
2828
rm -fr /tmp/* ; \
2929
rm -rf /var/lib/apt/lists/*
@@ -32,7 +32,7 @@ RUN set -ex; \
3232
RUN curl -sL http://www.pgbouncer.org/downloads/files/${PGBOUNCER_VERSION}/pgbouncer-${PGBOUNCER_VERSION}.tar.gz > pgbouncer.tar.gz ; \
3333
tar xzf pgbouncer.tar.gz ; \
3434
cd pgbouncer-${PGBOUNCER_VERSION} ; \
35-
sh ./configure --without-cares --with-udns ; \
35+
sh ./configure --with-cares; \
3636
make
3737

3838

@@ -50,7 +50,7 @@ LABEL name="PgBouncer Container Images" \
5050

5151
RUN set -ex; \
5252
apt-get update && apt-get upgrade -y; \
53-
apt-get install -y libevent-dev libssl-dev libudns-dev libvshadow-utils findutils; \
53+
apt-get install -y libevent-dev libssl-dev libudns-dev libvshadow-utils findutils libc-ares2 libc-ares-dev; \
5454
apt-get -y install postgresql ; \
5555
apt-get -y clean ; \
5656
rm -rf /var/lib/apt/lists/*; \

0 commit comments

Comments
 (0)