-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (30 loc) · 963 Bytes
/
Dockerfile
File metadata and controls
40 lines (30 loc) · 963 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
ARG PGVERSION=15
FROM postgis/postgis:${PGVERSION}-master AS base-image
ARG PGVERSION=15
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
curl \
git \
build-essential \
cmake \
postgresql-server-dev-$PGVERSION
FROM base-image AS pgmq
RUN git clone https://github.com/pgmq/pgmq.git && \
cd pgmq/pgmq-extension && \
make && \
make install
FROM base-image AS final-stage
ARG PGVERSION=15
RUN apt-get update && \
apt-get install -y --no-install-recommends \
postgresql-$PGVERSION-cron && \
apt-get purge -y --auto-remove && \
rm -rf /var/lib/apt/lists/*
COPY --from=pgmq \
/usr/share/postgresql/$PGVERSION/extension/pgmq* \
/usr/share/postgresql/$PGVERSION/extension/
COPY --from=pgmq \
/usr/lib/postgresql/$PGVERSION/lib/pgmq* \
/usr/lib/postgresql/$PGVERSION/lib/
COPY ./conf.sh /docker-entrypoint-initdb.d/z_conf.sh