annotate Dockerfile @ 1:e2cbcf6fa22e draft

master branch Updating with tag :CI_COMMIT_TAG - - Fxx
author fgiacomoni
date Sun, 11 Dec 2022 17:16:43 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
1 #FROM pfem/perlfull
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
2 FROM python:3.8-buster
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
3
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
4 # set author
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
5 LABEL maintainer="franck.giacomoni@inrae.fr"
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
6
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
7 ENV PLANEMO_VENV_LOCATION /planemo-venv
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
8 ENV CONDA /tmp/conda
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
9
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
10
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
11 RUN apt-get update &&\
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
12 apt-get upgrade -y &&\
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
13 apt-get install --no-install-recommends --yes build-essential \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
14 git \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
15 libgl1-mesa-glx \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
16 libegl1-mesa \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
17 libxrandr2 \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
18 libxss1 \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
19 libxcursor1 \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
20 libxcomposite1 \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
21 libasound2 \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
22 libxi6 \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
23 libxtst6 \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
24 # python3 \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
25 # python3-pip \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
26 python-virtualenv && \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
27 pip install virtualenv && \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
28 python3 -m virtualenv "$PLANEMO_VENV_LOCATION" && \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
29 . "$PLANEMO_VENV_LOCATION"/bin/activate && \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
30 pip install --upgrade pip setuptools && \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
31 pip install planemo numpy && \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
32 pip install -U planemo && \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
33 #planemo conda_init --conda_prefix "$CONDA" && \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
34 apt-get autoremove -y && \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
35 apt-get clean && \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
36 rm -rf /var/lib/apt/lists/* && \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
37 rm -rf /tmp/* && \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
38 rm -rf /var/tmp/* && \
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
39 rm -rf /usr/bin/X11 ;
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
40
e2cbcf6fa22e master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
diff changeset
41 CMD []