-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-db
31 lines (25 loc) · 1.09 KB
/
Dockerfile-db
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
ARG BASE_CONTAINER=define_as_build_arg
FROM $BASE_CONTAINER
LABEL MAINTAINER="CSEL Ops <[email protected]>"
USER root
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
postgresql-client
##
## Geopython, XML
##
RUN mamba install -c conda-forge \
conda-forge::gdal conda-forge:libgdal \
conda-forge::lxml conda-forge:libiconv conda-forge::geopandas conda-forge::geoplot \
conda-forge::folium conda-forge::pysal conda-forge::esda conda-forge::rasterio conda-forge::poppler \
conda-forge::psycopg2 conda-forge::mysqlclient conda-forge::ipython-sql && \
mamba clean -afy && \
DEBIAN_FRONTEND=noninteractive apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
xqilla libxqilla-dev && \
rm -rf /var/lib/apt/lists/* && \
$CONDA_DIR/bin/pip install contextily libpysal mgwr mapclassify esda python-simplexquery pymysql
RUN rm -rf /home/jovyan && \
mkdir /home/jovyan && \
chown $NB_UID:$NB_GID /home/jovyan
USER $NB_UID