diff --git a/docker/postgres/Dockerfile b/docker/postgres/Dockerfile index e536eef148..4058affb4e 100644 --- a/docker/postgres/Dockerfile +++ b/docker/postgres/Dockerfile @@ -1,11 +1,11 @@ FROM debezium/postgres:15-alpine ENV WAL2JSON_TAG=wal2json_2_5 +ENV PGVECTOR_TAG=v0.7.4 RUN apk add --no-cache --virtual .debezium-build-deps gcc clang15 llvm15 git make musl-dev pkgconf \ && git clone https://github.com/eulerto/wal2json -b master --single-branch \ && (cd /wal2json && git checkout tags/$WAL2JSON_TAG -b $WAL2JSON_TAG && make && make install) \ - && rm -rf wal2json \ - && git clone https://github.com/pgvector/pgvector.git \ - && cd pgvector \ - && make && make install \ - && rm -rf pgvector \ + && (rm -rf wal2json && [ ! -d "wal2json" ] && echo "wal2json removed successfully") \ + && git clone https://github.com/pgvector/pgvector.git -b master --single-branch \ + && (cd /pgvector && git checkout tags/$PGVECTOR_TAG -b $PGVECTOR_TAG && make && make install) \ + && (rm -rf pgvector && [ ! -d "pgvector" ] && echo "pgvector removed successfully") \ && apk del .debezium-build-deps \ No newline at end of file