| 
0
 | 
     1 
 | 
| 
 | 
     2 FROM python:3.8-buster
 | 
| 
 | 
     3 
 | 
| 
 | 
     4 # set author
 | 
| 
 | 
     5 MAINTAINER Lain Pavot <lain.pavot@inra.fr>
 | 
| 
 | 
     6 
 | 
| 
 | 
     7 # set encoding
 | 
| 
 | 
     8 ENV LC_ALL en_US.UTF-8
 | 
| 
 | 
     9 ENV LANG en_US.UTF-8
 | 
| 
 | 
    10 ENV R_BASE_VERSION 4.0.3
 | 
| 
 | 
    11 
 | 
| 
 | 
    12 ENV PLANEMO_VENV_LOCATION /planemo-venv
 | 
| 
 | 
    13 ENV CONDA /tmp/conda
 | 
| 
 | 
    14 
 | 
| 
 | 
    15 RUN \
 | 
| 
 | 
    16         apt-get update                                                                                         \
 | 
| 
 | 
    17     &&  apt-get install -y --no-install-recommends                                                             \
 | 
| 
 | 
    18         ed                                                                                                     \
 | 
| 
 | 
    19         less                                                                                                   \
 | 
| 
 | 
    20         locales                                                                                                \
 | 
| 
 | 
    21         vim-tiny                                                                                               \
 | 
| 
 | 
    22         wget                                                                                                   \
 | 
| 
 | 
    23         ca-certificates                                                                                        \
 | 
| 
 | 
    24         fonts-texgyre                                                                                          \
 | 
| 
 | 
    25     &&  echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen                                                            \
 | 
| 
 | 
    26     &&  locale-gen en_US.utf8                                                                                  \
 | 
| 
 | 
    27     &&  /usr/sbin/update-locale LANG=en_US.UTF-8                                                               \
 | 
| 
 | 
    28     &&  echo "deb http://http.debian.net/debian buster main" > /etc/apt/sources.list.d/debian-unstable.list    \
 | 
| 
 | 
    29     &&  echo 'APT::Default-Release "stable";' > /etc/apt/apt.conf.d/default                                    \
 | 
| 
 | 
    30     &&  echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/90local-no-recommends                    \
 | 
| 
 | 
    31     &&  apt-get update                                                                                         \
 | 
| 
 | 
    32     &&  apt-get upgrade -y                                                                                     \
 | 
| 
 | 
    33     &&  apt-get install -y --no-install-recommends                                                             \
 | 
| 
 | 
    34         git                                                                                                    \
 | 
| 
 | 
    35         littler                                                                                                \
 | 
| 
 | 
    36         libhdf5-dev                                                                                            \
 | 
| 
 | 
    37         r-cran-littler                                                                                         \
 | 
| 
 | 
    38         r-base                                                                                                 \
 | 
| 
 | 
    39         r-base-dev                                                                                             \
 | 
| 
 | 
    40         r-recommended                                                                                          \
 | 
| 
 | 
    41         python-virtualenv                                                                                      \
 | 
| 
 | 
    42     &&  R -e 'install.packages("batch", repos="http://cran.us.r-project.org")'                                 \
 | 
| 
 | 
    43     &&  pip install virtualenv                                                                                 \
 | 
| 
 | 
    44     &&  python -m virtualenv "$PLANEMO_VENV_LOCATION"                                                          \
 | 
| 
 | 
    45     &&  . "$PLANEMO_VENV_LOCATION"/bin/activate                                                                \
 | 
| 
 | 
    46     &&  pip install --upgrade pip setuptools                                                                   \
 | 
| 
 | 
    47     &&  pip install planemo numpy                                                                              \
 | 
| 
 | 
    48     &&  planemo conda_init --conda_prefix "$CONDA"                                                             \
 | 
| 
 | 
    49     &&  apt-get clean autoclean                                                                                \
 | 
| 
 | 
    50     &&  apt-get autoremove --yes                                                                               \
 | 
| 
 | 
    51     &&  rm -rf /var/lib/{apt,dpkg,cache,log}/                                                                  \
 | 
| 
 | 
    52     &&  rm -rf /usr/bin/X11                                                                                    \
 | 
| 
 | 
    53     &&  rm -rf /tmp/*                                                                                          ;
 | 
| 
 | 
    54 
 | 
| 
 | 
    55 CMD []
 | 
| 
 | 
    56 
 |