Files
docker-postgis/Dockerfile
Roman Vanicek 06b715861b
All checks were successful
continuous-integration/drone/push Build is passing
Add pg-vector
2026-03-28 22:43:20 +00:00

19 lines
547 B
Docker

FROM golang:1.21-bullseye AS builder
WORKDIR /usr/local/src/pg_autoconfig
COPY go.* ./
COPY *.go ./
RUN go mod download
RUN mkdir bin/ && go build -o bin/ ./...
FROM postgis/postgis:16-master
COPY --from=builder /usr/local/src/pg_autoconfig/bin/pg_autoconfig /
RUN localedef -i cs_CZ -c -f UTF-8 -A /usr/share/locale/locale.alias cz_CZ.UTF-8 && \
apt-get update && apt-get install -y postgresql-16-auto-failover pg-auto-failover-cli postgresql-16-pgvector && rm -rf /var/lib/apt/lists/*
#ENV LANG en_GB.utf8
ENTRYPOINT [ "/pg_autoconfig" ]