forked from cloudnative-pg/postgres-extensions-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (17 loc) · 677 Bytes
/
Dockerfile
File metadata and controls
25 lines (17 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ARG BASE=ghcr.io/cloudnative-pg/postgresql:18-minimal-trixie
FROM $BASE AS builder
ARG PG_MAJOR
ARG EXT_VERSION
USER 0
RUN apt-get update && \
apt-get install -y --no-install-recommends "postgresql-${PG_MAJOR}-pgvector=${EXT_VERSION}"
FROM scratch
ARG PG_MAJOR
# Licenses
COPY --from=builder /usr/share/doc/postgresql-${PG_MAJOR}-pgvector/copyright /licenses/postgresql-${PG_MAJOR}-pgvector/
# Libraries
COPY --from=builder /usr/lib/postgresql/${PG_MAJOR}/lib/vector* /lib/
COPY --from=builder /usr/lib/postgresql/${PG_MAJOR}/lib/bitcode/ /lib/bitcode/
# Share
COPY --from=builder /usr/share/postgresql/${PG_MAJOR}/extension/vector* /share/extension/
USER 65532:65532