Intial commit.
This commit is contained in:
22
Dockerfile
Normal file
22
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user