Skip to content

Commit ff06750

Browse files
authored
improvement: add postgis extension (#44)
Signed-off-by: kernel-io <kernel-io@users.noreply.github.com>
1 parent 80524fe commit ff06750

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@ FROM wrouesnel/postgres_exporter:latest AS postgres_exporter
1616

1717
FROM postgres:${PG_VERSION}
1818
ARG VERSION
19+
ARG POSTGIS_MAJOR=3
1920

2021
LABEL fly.app_role=postgres_cluster
2122
LABEL fly.version=${VERSION}
2223
LABEL fly.pg-version=${PG_VERSION}
2324

2425
RUN apt-get update && apt-get install --no-install-recommends -y \
2526
ca-certificates curl bash dnsutils vim-tiny procps jq haproxy \
27+
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
28+
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts \
2629
&& apt autoremove -y
2730

2831
COPY --from=stolon /go/src/app/bin/* /usr/local/bin/

0 commit comments

Comments
 (0)