-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile2.back
More file actions
39 lines (38 loc) · 1.12 KB
/
Dockerfile2.back
File metadata and controls
39 lines (38 loc) · 1.12 KB
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
ARG PG_MAJOR_VERSION=16
ARG DEBIAN_FRONTEND=noninteractive
ARG PARADEDB_TELEMETRY=false
FROM postgres:${PG_MAJOR_VERSION}
ARG DEBIAN_FRONTEND
ARG PARADEDB_TELEMETRY
ENV PARADEDB_TELEMETRY=$PARADEDB_TELEMETRY
ENV TZ=UTC
LABEL maintainer="ATCHOMBA Luc Vindjedou - https://www.alvsoft.pro" \
org.opencontainers.image.description="PostgrSQL Server with many extention installed." \
org.opencontainers.image.source="https://github.com/alvsoft/postgres"
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
curl \
pgcopydb \
patroni \
check-patroni
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
SHELL [ "/bin/sh", "-s", ".", "$HOME/.cargo/env" ]
RUN cargo install pg-trunk
RUN trunk install \
postgis \
pgrouting \
pghydro \
pgvector \
pg_partman \
pgmq \
postgresml && \
cargo uninstall pg-trunk && \
rustup self uninstall
SHELL ["/bin/sh", "-c"]
RUN apt-get purge -y curl && \
apt-get autoremove -y && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
USER postgres
CMD ["postgres"]