-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
46 lines (35 loc) · 1.6 KB
/
Dockerfile
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
41
42
43
44
45
46
FROM postgres:12
MAINTAINER Roelof Rietbroek <[email protected]>
#credits for orginal dockerfile https://github.com/appropriate/docker-postgis/
ENV POSTGIS_MAJOR 3
#ENV POSTGIS_VERSION 2.5.3+dfsg-2.pgdg90+1
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts \
postgresql-plpython3-$PG_MAJOR \
postgis \
git python3-pip python3-wheel python3-setuptools python3-crypto python3-netcdf4 \
python3-sqlalchemy python3-psycopg2 python3-gdal python3-keyring \
python3-yaml python3-lxml python3-easywebdav python3-shapely python3-pycurl \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /etc/geoslurp
RUN chmod 777 /etc/geoslurp
COPY ./geoslurpwrap /usr/local/bin/
RUN chmod 755 /usr/local/bin/geoslurpwrap
COPY ./geoslurpadminwrap /usr/local/bin/
RUN chmod 755 /usr/local/bin/geoslurpadminwrap
COPY ./geoslurpentrypoint.sh /
COPY ./init-postgis.sh /docker-entrypoint-initdb.d/init-postgis.sh
COPY ./setupgeoslurp.sh /docker-entrypoint-initdb.d/setupgeoslurp.sh
COPY ./update-postgis.sh /usr/local/bin
RUN pip3 install --upgrade numpy
RUN mkdir /geoslurp_data
#RUN chown postgres:postgres /geoslurp_data
RUN mkdir /geoslurp_cache
#also install geoslurp from the git repository (for development)
RUN pip3 install --process-dependency-links git+https://github.com/strawpants/geoslurp.git
#install geoslurp from pip (for production)
#RUN pip3 install --process-dependency-links geoslurp==1.1.0
ENTRYPOINT /geoslurpentrypoint.sh
CMD postgres