-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockerfile.bag
34 lines (25 loc) · 1.13 KB
/
dockerfile.bag
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
FROM debian:bullseye-20211201
# v1.0-rc10/flyspray-1.0-rc10.tgz
ENV BAG_URL="https://service.pdok.nl/kadaster/adressen/atom/v1_0/downloads/lvbag-extract-nl.zip"
ENV BAG_DIR="/bag"
# The flyspray app must be run from /var/www/html
# do an apt update and install non-interactive aids to prevent some warnings
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update
RUN apt install -y apt-utils wget unzip
RUN apt install -y python-setuptools python-dev libpq-dev git
# install miniconda
RUN wget -nv -O /tmp/miniconda.sh \
https://repo.anaconda.com/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh
RUN /bin/bash /tmp/miniconda.sh -b -p /miniconda
# ensure a bash shell for conda with a correct path
RUN echo PATH=/miniconda/bin:$PATH >> ~/.bashrc
#RUN echo "conda activate bag" >> ~/.bashrc
SHELL [ "/bin/bash", "--login", "-c" ]
RUN conda init bash
RUN conda install -y gdal libgdal libxml2 libxslt lxml psycopg2
RUN pip install configparse
# install NLExtract
RUN git clone https://github.com/nlextract/NLExtract.git /nlextract
# during run-time, copy the files to the /app directory and change ownership
#CMD ["/bin/bash", "-c", "ls -l /bag"]