supabase-postgres.git / summary / log / commit / refs
commit fe5a4c5d854881a53cc3105bed69df247db69f50
Author: Div Arora <root@darora.com>
Commit: Div Arora <darora@users.noreply.github.com>
Date: Sat Jul 13 06:23:21 2024 +0000
fix: ensure that we pull apt updates before building
I'm not quite certain why the current apt commands are structured the
way they are, pulling the package lists _after_ operations that use
the package list.
The proposed change should unblock the build, but we should clean this
up during the week once folks that contributed the original code are
available.
docker/Dockerfile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docker/Dockerfile b/docker/Dockerfile
index f9f0ebd0..116377b5 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -41,7 +41,7 @@ ENV DEB_CFLAGS_APPEND="-g3"
ARG DEB_BUILD_PROFILES="pkg.postgresql.nozstd"
ENV DEB_BUILD_PROFILES="${DEB_BUILD_PROFILES}"
-RUN apt-get build-dep -y postgresql-common pgdg-keyring && \
+RUN apt-get -o Acquire::GzipIndexes=false update && apt-get build-dep -y postgresql-common pgdg-keyring && \
apt-get source --compile postgresql-common pgdg-keyring && \
dpkg-scanpackages . > Packages && \
apt-get -o Acquire::GzipIndexes=false update
[parent: 2b4c4f08d446]