annotate Dockerfile.planemo @ 0:15c9fbefeaf1 draft

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