Intial commit.

This commit is contained in:
2021-06-06 15:49:19 +02:00
commit b1502ceeb5
4 changed files with 98 additions and 0 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM --platform=${TARGETPLATFORM} alpine:3.13
ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN apk --update add libevent openssl c-ares gettext ca-certificates pgbouncer
WORKDIR /
RUN addgroup -S pgbouncer \
&& adduser -S pgbouncer \
&& mkdir -p /etc/pgbouncer /var/log/pgbouncer /var/run/pgbouncer
COPY pgbouncer.ini.tmpl /etc/pgbouncer/
COPY auth_file.txt.tmpl /etc/pgbouncer/
COPY entrypoint.sh /
RUN chown -R pgbouncer:pgbouncer /var/log/pgbouncer /var/run/pgbouncer /etc/pgbouncer /etc/ssl/certs \
&& chmod +x /entrypoint.sh
USER pgbouncer:pgbouncer
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]