diff --git a/Dockerfile.compute-node b/Dockerfile.compute-node index 2f60fd59f8..d7e6dea961 100644 --- a/Dockerfile.compute-node +++ b/Dockerfile.compute-node @@ -7,9 +7,8 @@ RUN apt update && \ # Build Postgres from the neon postgres repository. FROM build-deps AS pg-build -RUN git clone -b main https://github.com/neondatabase/postgres.git postgres && \ - cd postgres && \ - ./configure CFLAGS='-O2 -g3' --enable-debug --with-uuid=ossp && \ +COPY vendor/postgres postgres +RUN cd postgres && \ make MAKELEVEL=0 -j $(getconf _NPROCESSORS_ONLN) -s install && \ make MAKELEVEL=0 -j $(getconf _NPROCESSORS_ONLN) -s -C contrib/ install && \ # Install headers diff --git a/vendor/postgres b/vendor/postgres index a479855158..3f315a1ec3 160000 --- a/vendor/postgres +++ b/vendor/postgres @@ -1 +1 @@ -Subproject commit a4798551587fb5a52740687a341af83b28733dc6 +Subproject commit 3f315a1ec336b3a22a09d2015ce91697def4904e