From 9c2c1e879a14b5189eee3cf014b01176c7e9fab8 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Fri, 3 Nov 2023 14:24:10 +0100 Subject: [PATCH] Add new dockerfile for postgres (#2322) * Add new Dockerfile for postgres * Fix docker * Update dockerfile --------- Co-authored-by: martmull --- infra/build/postgres/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infra/build/postgres/Dockerfile b/infra/build/postgres/Dockerfile index e574f2d5fb..3b4470c896 100644 --- a/infra/build/postgres/Dockerfile +++ b/infra/build/postgres/Dockerfile @@ -28,6 +28,8 @@ RUN apt update && apt install -y curl # Install precompiled pg_graphql extensions RUN curl -L "https://github.com/supabase/pg_graphql/releases/download/v${PG_GRAPHQL_VERSION}/pg_graphql-v${PG_GRAPHQL_VERSION}-pg${PG_MAIN_VERSION}-${TARGETARCH}-linux-gnu.deb" -o pg_graphql.deb RUN dpkg --install pg_graphql.deb +RUN cp /usr/share/postgresql/15/extension/pg_graphql* /opt/bitnami/postgresql/share/extension/ +RUN cp /usr/lib/postgresql/15/lib/pg_graphql* /opt/bitnami/postgresql/lib/ COPY ./infra/build/postgres/init.sql /docker-entrypoint-initdb.d/