File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,8 @@ COPY . .
1010RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/event_handler ./cmd/event_handler
1111RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/failover_validation ./cmd/failover_validation
1212RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/pg_unregister ./cmd/pg_unregister
13-
1413RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/start_monitor ./cmd/monitor
1514RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/start_admin_server ./cmd/admin_server
16-
1715RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/start ./cmd/start
1816
1917COPY ./bin/* /fly/bin/
@@ -24,6 +22,8 @@ FROM postgres:${PG_VERSION}
2422ENV PGDATA=/data/postgresql
2523ARG VERSION
2624ARG PG_MAJOR_VERSION
25+ ARG POSTGIS_MAJOR=3
26+
2727
2828LABEL fly.app_role=postgres_cluster
2929LABEL fly.version=${VERSION}
@@ -34,6 +34,10 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
3434 ca-certificates iproute2 postgresql-$PG_MAJOR_VERSION-repmgr curl bash dnsutils vim procps jq pgbouncer ssh \
3535 && apt autoremove -y
3636
37+ RUN apt-get update && apt-get install --no-install-recommends -y \
38+ postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
39+ postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts
40+
3741COPY --from=0 /fly/bin/* /usr/local/bin
3842COPY --from=postgres_exporter /postgres_exporter /usr/local/bin/
3943
You can’t perform that action at this time.
0 commit comments