From 2b39a896a76b02beea23db1e3a4ab323a18a7744 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Fri, 2 Jul 2021 14:45:59 +0200 Subject: Postgres can not be run as root --- app/postgres/build/postgres/Dockerfile | 1 + 1 file changed, 1 insertion(+) (limited to 'app/postgres/build') diff --git a/app/postgres/build/postgres/Dockerfile b/app/postgres/build/postgres/Dockerfile index f4b36c1..329d707 100644 --- a/app/postgres/build/postgres/Dockerfile +++ b/app/postgres/build/postgres/Dockerfile @@ -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"] -- cgit v1.2.3