File: Dockerfile

package info (click to toggle)
python-polsarpro 2026.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 17,024 kB
  • sloc: python: 3,830; xml: 293; sh: 91; javascript: 18; makefile: 3
file content (36 lines) | stat: -rw-r--r-- 1,638 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM mambaorg/micromamba:debian12-slim
# FROM mambaorg/micromamba

USER root
RUN apt-get update && apt-get install -y \
    software-properties-common
RUN apt-get install -y git python3-pip wget libpq-dev procps gdal-bin
RUN apt-get install -y gcc g++ build-essential 
RUN apt-get install -y unzip
# Extra libs for C-PolSARPro, not needed for the subset of features we consider
# RUN apt-get install -y freeglut3-dev libfreeimage-dev
# RUN apt-get install -y libtk-img iwidgets4 bwidget
# RUN apt-get install -y libglew-dev

# Install C-version of PolSARPro -- zip file needs to be downloaded from
# https://ietr-lab.univ-rennes1.fr/polsarpro-bio/Linux/PolSARpro_v6.0.3_Biomass_Edition_Linux_Installer_20210501.zip
ARG CPSPDIR="/home/c_psp/"
WORKDIR ${CPSPDIR}
COPY PolSARpro_v6.0.4_Biomass_Edition_Linux_Installer_20250122.zip ${CPSPDIR}
RUN unzip ${CPSPDIR}PolSARpro_v6.0.4_Biomass_Edition_Linux_Installer_20250122.zip
# we use custom building scripts
COPY scripts/Compil_PolSARpro_Biomass_Edition_Linux.sh ${CPSPDIR}Soft
COPY scripts/PolSARpro_v6.0.4_Biomass_Edition_Linux_Installation.sh ${CPSPDIR}
RUN chmod +x PolSARpro_v6.0.4_Biomass_Edition_Linux_Installation.sh
RUN ./PolSARpro_v6.0.4_Biomass_Edition_Linux_Installation.sh

# Setup micromamba (lightweight conda clone)
WORKDIR "/tmp/conda_init/"
SHELL [ "/bin/bash", "--login", "-c" ]
RUN micromamba shell init --shell=bash --root-prefix=~/micromamba
RUN source ~/.bashrc
COPY environment.yaml environment.yaml
RUN micromamba create -f  environment.yaml
RUN echo "micromamba activate psp" >> ~/.bashrc
RUN echo "alias conda='micromamba'" >> ~/.bashrc
RUN micromamba activate psp