Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,20 @@ | ||
# docker for s2p | ||
# Carlo de Franchis <carlodef@gmail.com> | ||
|
||
FROM ubuntu:16.04 | ||
FROM ubuntu:latest | ||
MAINTAINER Carlo de Franchis <carlodef@gmail.com> | ||
# https://goo.gl/aypXVx | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
cmake \ | ||
gdal-bin \ | ||
geographiclib-tools \ | ||
git \ | ||
libfftw3-dev \ | ||
libgdal-dev \ | ||
libgeographic-dev \ | ||
libgeotiff-dev \ | ||
libtiff5-dev \ | ||
python \ | ||
python-numpy \ | ||
python-pip \ | ||
cmake \ | ||
software-properties-common \ | ||
python-software-properties \ | ||
unzip | ||
RUN pip install -U pip | ||
RUN pip install utm bs4 lxml requests | ||
|
||
# Install GDAL 2.x from ubuntugis-stable | ||
RUN apt-get install dialog apt-utils -y | ||
RUN add-apt-repository ppa:ubuntugis/ppa -y | ||
RUN apt-get update && apt-get install -y \ | ||
gdal-bin \ | ||
python-gdal | ||
|
||
# Install s2p from MISS3D/s2p | ||
RUN git clone https://github.com/MISS3D/s2p.git --recursive | ||
RUN cd s2p && make all | ||
python3 \ | ||
python3-numpy \ | ||
python3-pip | ||
|
||
WORKDIR /s2p | ||
# Install s2p | ||
RUN pip3 install s2p |