switch to s6-rc
This commit is contained in:
parent
05459d3577
commit
b4e60794bb
@ -1,7 +1,6 @@
|
|||||||
FROM thallian/confd-env:latest
|
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 \
|
RUN apk add --no-cache \
|
||||||
postgresql14 \
|
postgresql14 \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/command/with-contenv sh
|
#!/command/with-contenv sh
|
||||||
|
|
||||||
if [ ! -f "/var/lib/postgresql/data/PG_VERSION" ]; then
|
if [ ! -f "$PGDATA/PG_VERSION" ]; then
|
||||||
s6-setuidgid postgres initdb --username=postgres
|
initdb --username=postgres
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user