-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.db
22 lines (17 loc) · 893 Bytes
/
Dockerfile.db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:22.04
ENV TZ=America/New_York
RUN ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && echo ${TZ} > /etc/timezone
# Remove /var/lib/postgresql so that a new one will be initialized in the entrypoint.
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install --no-install-recommends -y gosu locales postgis postgresql-14 \
postgresql-14-postgis-3 \
postgresql-14-postgis-3-scripts && \
rm -rf /var/lib/postgresql/* && \
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime && \
dpkg-reconfigure -f noninteractive locales tzdata && \
apt-get clean
COPY cavedb/scripts/docker-db-entrypoint.sh /docker-db-entrypoint.sh
VOLUME ["/var/lib/postgresql"]
ENTRYPOINT ["/docker-db-entrypoint.sh"]