Skip to content

Commit

Permalink
Update api db
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Mar 13, 2024
1 parent 2cd2232 commit 8280f22
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
18 changes: 17 additions & 1 deletion images/db/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
FROM postgres:14
ADD openstreetmap-postgres-init.sh /docker-entrypoint-initdb.d/
RUN apt-get update \
&& apt-get install -y \
postgresql-server-dev-14 \
make \
build-essential \
postgresql-14-postgis-3 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

ADD functions/functions.sql /usr/local/share/osm-db-functions.sql
ADD docker_postgres.sh /docker-entrypoint-initdb.d/
RUN mkdir -p db
RUN mkdir -p lib
ADD functions/ db/functions/
ADD lib/quad_tile/ lib/quad_tile/
RUN make -C db/functions/
RUN chown -R postgres lib/
RUN chown -R postgres db/
9 changes: 0 additions & 9 deletions images/db/openstreetmap-postgres-init.sh

This file was deleted.

0 comments on commit 8280f22

Please sign in to comment.