File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,9 +43,17 @@ RUN echo "deb [signed-by=/usr/share/keyrings/postgresql-keyring.gpg] https://apt
4343 cat /etc/apt/sources.list.d/pgdg.list
4444
4545# Update package lists and install postgresql-client-common
46+ # Capture error output for debugging
4647RUN apt-get clean && \
4748 rm -rf /var/lib/apt/lists/* && \
48- apt-get update --allow-releaseinfo-change && \
49+ apt-get update --allow-releaseinfo-change 2>&1 | tee /tmp/apt-update.log || \
50+ (echo "=== apt-get update failed ===" && \
51+ cat /tmp/apt-update.log && \
52+ echo "=== Checking repository config ===" && \
53+ cat /etc/apt/sources.list.d/pgdg.list && \
54+ echo "=== Checking keyring file ===" && \
55+ ls -la /usr/share/keyrings/postgresql-keyring.gpg && \
56+ exit 1) && \
4957 apt-get install -y postgresql-client-common && \
5058 rm -rf /var/lib/apt/lists/*
5159
You can’t perform that action at this time.
0 commit comments