Update Dockerfile

This commit is contained in:
Alexandre
2024-03-19 13:26:05 +01:00
committed by GitHub
parent 981382335c
commit 9d42da7d63

View File

@@ -31,10 +31,10 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
# Install postgres
ENV PGDATA=/config/postgres
RUN \
apt update && apt install vim gnupg2 lsb-release sudo curl -y && \
apt-get update && apt-get install vim gnupg2 lsb-release sudo curl -y && \
curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc| gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg && \
sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' && \
apt update && apt install -y postgresql-16 && \
apt-get update && apt-get install -y postgresql-16 && \
sed -i "/data_directory/c data_directory = '/config/postgres'" /etc/postgresql/*/main/postgresql.conf
##################