18 lines
377 B
Docker
18 lines
377 B
Docker
FROM docker.io/thallian/confd-env:3.19-3.1.6.2
|
|
|
|
ENV PGDATA=/var/lib/postgresql/data
|
|
|
|
RUN apk add --no-cache \
|
|
postgresql16 \
|
|
postgresql16-contrib
|
|
|
|
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 /
|
|
|
|
VOLUME /var/lib/postgresql/data /etc/ssl/postgresql/
|
|
|
|
EXPOSE 5432
|