annotate Dockerfile @ 1:d12c213ea7c1 draft

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