annotate Dockerfile @ 13:26f01380145d draft

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