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