<gh_stars>1-10
FROM ubuntu:xenial-20200326

RUN apt-get update && \
    apt-get install -y --no-install-recommends \
    software-properties-common=* && \
    add-apt-repository ppa:deadsnakes/ppa && \
    apt-get update && \
    apt-get install -y --no-install-recommends \
    libpython3.6=* \
    openjdk-8-jre-headless=* \
    python3.6=* \
    python3-pip=* \
    wget=* && \
    rm -rf /var/lib/apt/lists/* && \
    python3.6 -m pip install --no-cache-dir --upgrade setuptools==41.6.0 wheel==0.33.6

ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
RUN export JAVA_HOME

RUN mkdir /opt/snap && \
    chmod +x /opt/snap -R && \
    wget -q -O /opt/snap/snap-setup.sh http://step.esa.int/downloads/7.0/installers/esa-snap_sentinel_unix_7_0.sh && \
    bash /opt/snap/snap-setup.sh -q -console -overwrite -dir /opt/snap && \
    mkdir /usr/lib/python3.6/dist-packages/ && \
    bash /opt/snap/bin/snappy-conf /usr/bin/python3.6 /usr/lib/python3.6/dist-packages/ && \
    rm /opt/snap/snap-setup.sh
