postgres/Containerfile

18 lines
377 B
Plaintext
Raw Permalink Normal View History

2024-03-28 13:54:29 +00:00
FROM docker.io/thallian/confd-env:3.19-3.1.6.2
2017-09-04 14:00:44 +00:00
2022-02-13 07:23:50 +00:00
ENV PGDATA=/var/lib/postgresql/data
2017-09-04 14:00:44 +00:00
2022-02-13 07:23:50 +00:00
RUN apk add --no-cache \
2024-03-28 13:54:29 +00:00
postgresql16 \
postgresql16-contrib
2017-09-04 14:00:44 +00:00
RUN mkdir -p /run/postgresql && mkdir -p $PGDATA
RUN chown -R postgres /run/postgresql && chown -R postgres $PGDATA
RUN chmod 775 /run/postgresql
ADD /rootfs /
2017-09-22 10:16:27 +00:00
VOLUME /var/lib/postgresql/data /etc/ssl/postgresql/
2017-09-04 14:00:44 +00:00
EXPOSE 5432