-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.postgresql
More file actions
20 lines (14 loc) · 897 Bytes
/
Dockerfile.postgresql
File metadata and controls
20 lines (14 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# The base layer used for both prod and dev builds.
FROM postgres:10.3 AS postgres-base
HEALTHCHECK CMD ["su", "postgres", "-c", "psql -c 'select 1;'"]
COPY etc/apt/apt.conf.d/no-install-suggests-recommends.apt.conf /etc/apt/apt.conf.d/
RUN apt-get update \
&& apt-get install --no-install-suggests --no-install-recommends -y less gosu postgresql-10-postgis-2.4 postgresql-10-postgis-2.4-scripts postgresql-10-pgrouting libpostgresql-jdbc-java \
&& find /var/lib/apt/lists /var/cache/apt/archives -type f -delete \
&& true
COPY scripts/adjust-user scripts/adjust-term scripts/entrypoint scripts/exec /usr/local/share/container/scripts/
COPY bin/container-user bin/local-user /usr/local/share/container/bin/
ENV CONTAINER_USER postgres
ENV CONTAINER_GROUP postgres
ENTRYPOINT ["/usr/local/share/container/scripts/entrypoint", "/docker-entrypoint.sh"]
CMD ["postgres"]