Skip to content

Commit

Permalink
Add db-util image
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-french committed Mar 30, 2024
1 parent 0b1fb64 commit 28071b0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions db-util/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM alpine:latest

RUN apk add --no-cache postgresql-client

ARG PUID=1000
ARG PGID=1000

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

WORKDIR /postgresql-client

USER postgresql-client

ENTRYPOINT ["psql"]

0 comments on commit 28071b0

Please sign in to comment.