mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 07:31:34 +02:00
postgres-operator deployment template: run operator as non-root, and with readonly filesystem (#582)
This commit is contained in:
committed by
Felix Kunde
parent
35a1f2cff8
commit
028b834ea6
@@ -6,4 +6,9 @@ RUN apk --no-cache add ca-certificates
|
||||
|
||||
COPY build/* /
|
||||
|
||||
RUN addgroup -g 1000 pgo
|
||||
RUN adduser -D -u 1000 -G pgo -g 'Postgres operator' pgo
|
||||
|
||||
USER 1000:1000
|
||||
|
||||
ENTRYPOINT ["/postgres-operator"]
|
||||
|
||||
Reference in New Issue
Block a user