From 17159879069c2e38e6415d152d35455f123ac674 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 23 May 2024 12:15:02 -0400 Subject: changes --- build/postgres/Dockerfile | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'build/postgres') 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 -- cgit v1.2.3-freya