get rid of multistage build...
Some checks failed
/ build-general (bookworm, 1.4.1, v0.8.0, 17, 3.5.2, 2.19.3) (push) Failing after 2m49s
/ build-base (bookworm, 17) (push) Successful in 2m4s

This commit is contained in:
Ryan Voots 2025-05-08 16:02:55 -04:00
parent 48cff2a0e6
commit 513af1169e

View file

@ -4,7 +4,7 @@ ARG FMT_DATE=2025-05-08
ARG BASE_IMAGE_TAG=${PG_MAJOR_VERSION}-${DEB_RELEASE}-${FMT_DATE}
FROM gitea.simcop2387.info/simcop2387/postgresql-container-base:${BASE_IMAGE_TAG} AS pgbuilder
FROM gitea.simcop2387.info/simcop2387/postgresql-container-base:${BASE_IMAGE_TAG} AS final
ARG POSTGIS_VERSION=3.5.2
ARG PGVECTOR_VERSION=v0.8.0
@ -49,10 +49,10 @@ RUN git clone https://github.com/pgvector/pgvector --depth=1 --recursive -b ${PG
WORKDIR /build/pgvector
RUN make -j && make install
FROM gitea.simcop2387.info/simcop2387/postgresql-container-base:${BASE_IMAGE_TAG} AS final
COPY --from=pgbuilder /usr/share/postgresql/. /usr/share/posrgresql/
COPY --from=pgbuilder /usr/lib/postgresql/. /usr/lib/postgresql/
COPY --from=pgbuilder /usr/local/. /usr/local/
# FROM gitea.simcop2387.info/simcop2387/postgresql-container-base:${BASE_IMAGE_TAG} AS final
#
# COPY --from=pgbuilder /usr/share/postgresql/. /usr/share/posrgresql/
# COPY --from=pgbuilder /usr/lib/postgresql/. /usr/lib/postgresql/
# COPY --from=pgbuilder /usr/local/. /usr/local/
RUN ls -lah /usr/share/posrgresql/*/extension/