generated from VForWaTer/tool_template_python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (26 loc) · 830 Bytes
/
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
# Pull any base image that includes python3
FROM python:3.12.2
# Install GDAL which will be used by geopandas
RUN pip install --upgrade pip
RUN apt-get update && apt-get install -y gdal-bin libgdal-dev
RUN pip install GDAL==$(gdal-config --version | awk -F'[.]' '{print $1"."$2}')
# install the toolbox runner tools
RUN pip install "json2args>=0.7.0" \
metacatalog==0.9.2 \
ipython==8.26.0 \
pandas==2.1.4 \
geopandas==1.0.1 \
xarray[complete]==2024.7.0 \
rioxarray==0.17.0 \
polars-lts-cpu==1.1.0 \
geocube==0.6.0
# create the tool input structure
RUN mkdir /in
COPY ./in /in
RUN mkdir /out
RUN mkdir /src
COPY ./src /src
# copy the citation file - looks funny to make COPY not fail if the file is not there
COPY ./CITATION.cf[f] /src/CITATION.cff
WORKDIR /src
CMD ["python", "run.py"]