postgres/Dockerfile

18 lines
377 B
Docker
Raw Permalink Normal View History

2023-09-26 15:34:53 +00:00
FROM docker.io/thallian/confd-env:3.18-3.1.5.0
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 \
postgresql14 \
postgresql14-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