2018-11-26 17:19:25 +00:00
|
|
|
FROM thallian/confd-env:latest
|
2017-09-04 14:00:44 +00:00
|
|
|
|
2022-02-13 07:23:50 +00:00
|
|
|
ENV PGDATA=/var/lib/postgresql/data
|
|
|
|
ENV S6_KEEP_ENV=1
|
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
|