FROM geographica/gdal2 RUN apt-get update -y && apt-get install -y \ python-pip \ python-dev \ curl \ unzip \ wget && \ rm -rf /var/lib/apt/lists/* # Upgrade pip RUN pip install --upgrade pip # Set the working directory to /app WORKDIR /app # Install any needed packages specified in requirements.txt ADD requirements.txt /app RUN pip install --trusted-host pypi.python.org -r requirements.txt # Install Sen2Cor-02.05.05-Linux64.run RUN cd /app ### Sen2cor Version 2.5.5 #ADD http://step.esa.int/thirdparties/sen2cor/2.5.5/Sen2Cor-02.05.05-Linux64.run /app #RUN chmod a+x /app/Sen2Cor-02.05.05-Linux64.run && \ # bash /app/Sen2Cor-02.05.05-Linux64.run --target /home && \ # rm Sen2Cor-02.05.05-Linux64.run ### Sen2cor Version 2.8.0 ADD http://step.esa.int/thirdparties/sen2cor/2.8.0/Sen2Cor-02.08.00-Linux64.run /app RUN chmod a+x /app/Sen2Cor-02.08.00-Linux64.run && \ bash /app/Sen2Cor-02.08.00-Linux64.run --target /home && \ rm Sen2Cor-02.08.00-Linux64.run ENV PATH $PATH:/home/bin/ RUN cd /home/lib/python2.7/site-packages/sen2cor/aux_data && \ wget ftp://geo10.elie.ucl.ac.be/v207/ESACCI-LC-L4-ALL-FOR-SEN2COR.zip && \ unzip ESACCI-LC-L4-ALL-FOR-SEN2COR.zip && \ rm ESACCI-LC-L4-ALL-FOR-SEN2COR.zip # Setting environment variables ENV PYTHONUNBUFFERED 1 # Expose the Flask port EXPOSE 9764 # Run the sen2cor application CMD [ "python", "rc_sen2cor.py" ]