switch to s6-rc

This commit is contained in:
Sebastian Hugentobler 2022-02-13 08:23:50 +01:00
parent 5103f5b01f
commit 05459d3577
Signed by: shu
GPG key ID: BB32CF3CA052C2F0
16 changed files with 31 additions and 20 deletions

View file

@ -1,8 +1,11 @@
FROM thallian/confd-env:latest
ENV PGDATA /var/lib/postgresql/data
ENV PGDATA=/var/lib/postgresql/data
ENV S6_KEEP_ENV=1
RUN apk add --no-cache postgresql14 postgresql14-contrib
RUN apk add --no-cache \
postgresql14 \
postgresql14-contrib
RUN mkdir -p /run/postgresql && mkdir -p $PGDATA
RUN chown -R postgres /run/postgresql && chown -R postgres $PGDATA