forked from brainsam/pgbouncer
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
23 lines (19 loc) · 840 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM alpine:3.7
MAINTAINER [email protected]
RUN apk update && \
apk upgrade && \
apk --update add git build-base automake libtool m4 autoconf libevent-dev openssl-dev c-ares-dev \
bash bash-doc bash-completion util-linux pciutils usbutils coreutils binutils findutils grep py-docutils && \
git clone https://github.com/pgbouncer/pgbouncer.git && \
cd pgbouncer && \
git checkout pgbouncer_1_8_1 && \
git submodule init && \
git submodule update && \
./autogen.sh && \
./configure --prefix=/usr/local --with-libevent=/usr/lib && \
make && make install && \
apk del git build-base automake autoconf libtool m4 py-docutils && \
rm -f /var/cache/apk/* \
&& cd .. && rm -Rf pgbouncer
ADD entrypoint.sh ./
ENTRYPOINT ["./entrypoint.sh"]