|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FROM nvidia/cuda:12.2.2-runtime-ubuntu20.04 |
|
|
|
ARG DEBIAN_FRONTEND=noninteractive |
|
|
|
|
|
RUN apt-get update \ |
|
&& apt-get install -y \ |
|
build-essential \ |
|
cmake \ |
|
git \ |
|
libeigen3-dev \ |
|
libopencv-dev \ |
|
libceres-dev \ |
|
python3-dev \ |
|
curl \ |
|
pkg-config \ |
|
libcairo2-dev \ |
|
software-properties-common \ |
|
&& apt-get clean \ |
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
|
|
|
|
|
RUN add-apt-repository ppa:ubuntugis/ppa && \ |
|
apt-get update && \ |
|
apt-get -y install libgeos-dev |
|
|
|
RUN add-apt-repository ppa:deadsnakes/ppa && \ |
|
apt-get update && \ |
|
apt install -y python3.9-dev && \ |
|
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ |
|
python3.9 get-pip.py |
|
|
|
ARG REINSTALL_MAPMACHINE=1 |
|
RUN pip3.9 install git+https://github.com/tonyzzzzzz/map-machine |
|
|
|
WORKDIR /home/ |
|
|
|
|
|
|
|
RUN git clone https://github.com/mapillary/OpenSfM.git && cd OpenSfM && \ |
|
pip3.9 install -r requirements.txt |
|
|
|
RUN git clone https://github.com/facebookresearch/OrienterNet.git && cd OrienterNet && \ |
|
pip3 install -r requirements/full.txt |
|
|
|
|
|
RUN pip3.9 install geojson shapely geopandas mercantile turfpy vt2geojson folium \ |
|
geopy gradio_client pyarrow cloudpickle==2.0.0 urllib3~=1.25.6 scikit-image filelock hydra-core |
|
|
|
|
|
|
|
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | \ |
|
tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \ |
|
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | \ |
|
gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg && \ |
|
apt-get update -y && apt-get install google-cloud-sdk -y |
|
|
|
RUN pip3.9 install earthengine-api |
|
|
|
|
|
|
|
|