Skip to content

Commit

Permalink
Change default user for postgresql-client docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Joker9944 committed Sep 2, 2024
1 parent 7b6f5cd commit 0445cd8
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions images/postgresql-client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,6 @@ LABEL org.opencontainers.image.description="Alpine image with postgresql-client

RUN apk add --no-cache postgresql-client

ARG PUID=568
ARG PGID=568

RUN \
addgroup -g "${PGID}" postgresql-client && \
adduser \
-u "${PUID}" \
-G postgresql-client \
-h /postgresql-client \
-D \
postgresql-client

WORKDIR /postgresql-client

USER postgresql-client
USER nobody:nogroup

ENTRYPOINT ["psql"]

0 comments on commit 0445cd8

Please sign in to comment.