Postgres can not be run as root

This commit is contained in:
Quentin 2021-07-02 14:45:59 +02:00
parent e97496e09d
commit 2b39a896a7
2 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,7 @@ services:
# https://github.com/sorintlab/stolon/releases
STOLON_VERSION: 057389f7e484ee1d5c1e1a7020256020e7413c87
context: ./postgres/build/postgres
image: superboum/amd64_postgres:v8
image: superboum/amd64_postgres:v9
backup-consul:
build:

View File

@ -11,5 +11,6 @@ RUN make && chmod +x /stolon/bin/*
FROM postgres:13.3-buster
COPY --from=builder /stolon/bin /usr/local/bin
USER postgres
ENTRYPOINT []
CMD ["/bin/bash"]