Skip to content

Commit

Permalink
use build layer (#24)
Browse files Browse the repository at this point in the history
* use build layer

* build every commit

* only publish releases

* test build

* Update extension_ci.yml

* Update extension_ci.yml

* Update extension_ci.yml

* Update extension_ci.yml
  • Loading branch information
ChuckHend authored Nov 16, 2023
1 parent 24b6fc8 commit f83b983
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions images/vectorize-pg/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM postgres:15.4-bookworm
FROM postgres:15.4-bookworm as builder

ARG PGMQ_VER=0.33.1
ARG VECTOR_VER=0.5.1
Expand Down Expand Up @@ -50,7 +50,13 @@ COPY . .
RUN $HOME/.cargo/bin/cargo install cargo-pgrx --version=0.11.0 --locked
RUN $HOME/.cargo/bin/cargo pgrx install --pg-config=$(which pg_config)

RUN rm -rf /vectorize
FROM postgres:15.4-bookworm

COPY --from=builder /usr/share/postgresql/15/extension /usr/share/postgresql/15/extension
COPY --from=builder /usr/lib/postgresql/15/lib /usr/lib/postgresql/15/lib

RUN apt-get update \
&& apt-get install -y ca-certificates

COPY images/vectorize-pg/postgresql.conf /usr/share/postgresql/15/postgresql.conf.sample

Expand Down

0 comments on commit f83b983

Please sign in to comment.