Skip to content

Commit bb3c1c2

Browse files
committed
fix postgres17 image
1 parent e645302 commit bb3c1c2

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

apps/postgres17/Dockerfile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# renovate: datasource=docker depName=ghcr.io/cloudnative-pg/postgresql
22
ARG CNPG_TAG="17.5-1"
33

4-
FROM ghcr.io/cloudnative-pg/postgresql:$CNPG_TAG
4+
FROM ghcr.io/cloudnative-pg/postgresql:$CNPG_TAG-bookworm
55

66
ARG CNPG_TAG
77
ARG POSTGRES_VERSION=${CNPG_TAG%.*}
@@ -11,13 +11,8 @@ ARG VECTORCHORD_TAG="0.3.0"
1111

1212
# To install any package we need to be root
1313
USER root
14-
15-
# Install any extensions that we want
16-
ADD https://github.com/tensorchord/VectorChord/releases/download/${VECTORCHORD_TAG}/postgresql-${POSTGRES_VERSION}-vchord_${VECTORCHORD_TAG}-1_amd64.deb ./vchord.deb
17-
18-
# Copy extensions from previous stage, install, then remove
19-
RUN apt-get install -y --no-install-recommends ./vchord.deb && \
20-
rm -rf /download
14+
ADD https://github.com/tensorchord/VectorChord/releases/download/${VECTORCHORD_TAG}/postgresql-${POSTGRES_VERSION}-vchord_${VECTORCHORD_TAG}-1_amd64.deb /tmp/vchord.deb
15+
RUN apt-get install -y /tmp/vchord.deb && rm -f /tmp/vchord.deb
2116

2217
# Change to the uid of postgres (26)
23-
USER 26
18+
USER postgres

0 commit comments

Comments
 (0)