- FROM python:3.7
- WORKDIR /usr/src/app
- ADD . /usr/src/app
- #RUN add-apt-repository ppa:ubuntugis/ppa
- RUN apt-get -yq update
- RUN apt-get -yq install make automake gcc g++ subversion python3-dev python-numpy gdal-bin libgdal-dev binutils libproj-dev --no-install-recommends && apt-get clean -y
- ENV CPLUS_INCLUDE_PATH=/usr/include/gdal
- ENV C_INCLUDE_PATH=/usr/include/gdal
- RUN pip install --upgrade pip
- RUN pip install rasterio
- RUN pip install pygdal==2.4.0.6
- RUN pip install -r requirements.txt
- EXPOSE 4040
- CMD ["python", "area.py"]
Raw Paste