diff options
Diffstat (limited to 'build/postgres')
-rw-r--r-- | build/postgres/Dockerfile | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/build/postgres/Dockerfile b/build/postgres/Dockerfile index 834fa89..32bca6e 100644 --- a/build/postgres/Dockerfile +++ b/build/postgres/Dockerfile @@ -1,6 +1,21 @@ FROM postgres:16-alpine -RUN apk add --no-cache make git + +# install packages +RUN apk add --no-cache make git shadow +RUN rm -fr /var/cache/apk/* + +# install pgjwt RUN git clone https://github.com/michelp/pgjwt.git /tmp/pgjwt WORKDIR /tmp/pgjwt RUN make install + +# update postgres user +RUN groupmod --gid 1000 postgres +RUN usermod --uid 1000 postgres + +# remove build packages +RUN apk del make git shadow + +# fix workdir WORKDIR / +USER postgres |