Skip to content

Commit

Permalink
Version 1.12.0
Browse files Browse the repository at this point in the history
1. remove deprecated MAINTAINER instruction
2. update pgbouncer version to 1.12.0
  • Loading branch information
Alexander Moiseenko committed Jan 8, 2020
1 parent e49cabf commit 1fe58c5
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,19 @@
FROM alpine:latest AS build_stage

MAINTAINER [email protected]
FROM alpine:3.11.2 AS build_stage

WORKDIR /
RUN apk --update add git python py-pip build-base automake libtool m4 autoconf libevent-dev openssl-dev c-ares-dev
RUN pip install docutils
RUN git clone --branch pgbouncer_1_9_0 --depth 1 https://github.com/pgbouncer/pgbouncer.git src
RUN apk --update add python py-pip build-base automake libtool m4 autoconf libevent-dev openssl-dev c-ares-dev
RUN pip install docutils \
&& wget https://github.com/pgbouncer/pgbouncer/releases/download/pgbouncer_1_12_0/pgbouncer-1.12.0.tar.gz \
&& tar zxf pgbouncer-1.12.0.tar.gz && rm pgbouncer-1.12.0.tar.gz \
&& cd /pgbouncer-1.12.0/ \
&& ./configure --prefix=/pgbouncer \
&& make \
&& make install

WORKDIR /bin
RUN ln -s ../usr/bin/rst2man.py rst2man

WORKDIR /src
RUN mkdir /pgbouncer
RUN git submodule init
RUN git submodule update
RUN ./autogen.sh
RUN ./configure --prefix=/pgbouncer --with-libevent=/usr/lib
RUN make
RUN make install
RUN ls -R /pgbouncer

FROM alpine:latest
FROM alpine:3.11.2
RUN apk --update add libevent openssl c-ares
WORKDIR /
COPY --from=build_stage /pgbouncer /pgbouncer
Expand Down

0 comments on commit 1fe58c5

Please sign in to comment.