annotate Dockerfile @ 1:c7f4f2ac38f2 draft default tip

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