Skip to content

Commit

Permalink
fixed permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
muratgozel committed Sep 19, 2021
1 parent 5318e44 commit 50b5360
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ ENV PGPORT=5432
ENV PGUSER=postgres
ENV PGDATA=/usr/local/pgsql/data
ENV PG_BACKREST_VERSION=2.35
ENV PGUSER_UID=2001
ENV PGUSER_GID=2001
ENV LANG=en_US.utf8

COPY ./entrypoint.sh /entrypoint.sh
Expand All @@ -23,7 +25,8 @@ RUN apk add --no-cache --virtual .build-deps gcc g++ make wget pkgconf dpkg-dev
# configure dependencies
ln -sf python3 /usr/bin/python && \
mkdir -p /downloads && \
adduser -D -s /bin/bash $PGUSER && \
addgroup --gid ${PGUSER_GID} $PGUSER && \
adduser --disabled-password --uid ${PGUSER_UID} --ingroup $PGUSER --gecos "" -s /bin/bash $PGUSER && \
# download pgbackrest
cd /downloads && \
wget https://github.com/pgbackrest/pgbackrest/archive/release/$PG_BACKREST_VERSION.tar.gz && \
Expand Down

0 comments on commit 50b5360

Please sign in to comment.