-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (31 loc) · 1.1 KB
/
Dockerfile
File metadata and controls
48 lines (31 loc) · 1.1 KB
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
47
48
FROM nvidia/cuda:11.0.3-cudnn8-runtime-ubuntu18.04
RUN apt-get dist-upgrade
# Upgrade installed packages
RUN apt-get update && apt-get upgrade -y && apt-get clean
#Install GDAL and gdal*.py (global python==3.6)
RUN apt-get install python3-gdal python-gdal -y
RUN apt install curl libpq-dev gdal-bin aptitude -y
RUN aptitude install libgdal-dev -y -o APT::Get::Fix-Missing=true
#Install python3.8 with miniconda
RUN curl -o /conda_install.sh \
https://repo.anaconda.com/miniconda/Miniconda3-py38_23.1.0-1-Linux-x86_64.sh
RUN bash /conda_install.sh -b -p /miniconda
ENV PATH=/miniconda/bin:${PATH}
RUN conda update -y conda
RUN conda init
# Needed for geopandas&shapely to work
RUN apt-get update && \
apt-get install -y \
git \
libspatialindex-dev \
ffmpeg \
libsm6 \
libxext6
RUN conda install jupyter==1.0.0
RUN pip install s2cloudless==1.7.0
RUN mkdir /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install -r /code/requirements.txt
WORKDIR /code
COPY ./ .
CMD ["jupyter", "nbconvert", "--inplace", "--to=notebook", "--execute", "./Deforestation_inference.ipynb"]