diff Dockerfile @ 2:be504ccbc41c draft default tip

master branch Updating with tag :CI_COMMIT_TAG - - Fxx
author fgiacomoni
date Wed, 30 Nov 2022 16:14:27 +0000
parents 7c9269bded0e
children
line wrap: on
line diff
--- a/Dockerfile	Tue Jan 21 16:09:45 2020 -0500
+++ b/Dockerfile	Wed Nov 30 16:14:27 2022 +0000
@@ -1,51 +1,41 @@
-FROM ubuntu:18.04
+#FROM pfem/perlfull
+FROM python:3.8-buster
 
 # set author
-MAINTAINER Franck Giacomoni <franck.giacomoni.fr>
+LABEL maintainer="franck.giacomoni@inrae.fr"
 
-### 
-### [CONTAINER CORE FUNCTIONS]: 
-###   xxxx
-###   xxxx
-### [NOTES] 
-###   xxxx
+ENV PLANEMO_VENV_LOCATION /planemo-venv
+ENV CONDA /tmp/conda
 
-ENV PATH /opt/conda/bin:$PATH
 
-RUN apt-get -y update &&\
-    apt-get -y install build-essential \
-        cpanminus \
-        gzip \
-        wget \
-        bzip2 \
-        ca-certificates \
-        libglib2.0-0  \
-        libxext6  \
-        libsm6  \
-        libxrender1 \
-        libtext-csv-perl \
-        libxml-twig-perl \
-        libfile-share-perl
-
-RUN wget --quiet https://repo.anaconda.com/archive/Anaconda3-5.3.0-Linux-x86_64.sh -O ~/anaconda.sh && \
-    /bin/bash ~/anaconda.sh -b -p /opt/conda && \
-    rm ~/anaconda.sh && \
-    ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
-    echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
-    echo "conda activate base" >> ~/.bashrc
-
-RUN cpan install ExtUtils::MakeMaker && \
-    cpan install File::ShareDir::Install && \
-    cpan install Module::Release &&\
-    cpan install Archive::Zip &&\
-
-    apt -y install git &&\
-    apt -y install python2.7 python-pip &&\
-    apt -y install virtualenv &&\
-    pip install "pip>=7" &&\
-    pip install -U git+git://github.com/galaxyproject/planemo.git &&\
-
+RUN apt-get update &&\
+    apt-get upgrade -y &&\
+    apt-get install --no-install-recommends --yes build-essential \
+    	git \
+        libgl1-mesa-glx \
+        libegl1-mesa \
+        libxrandr2 \
+        libxss1 \
+        libxcursor1 \
+        libxcomposite1 \
+        libasound2 \
+        libxi6 \
+        libxtst6 \
+#        python3 \
+#        python3-pip \
+        python-virtualenv && \
+    pip install virtualenv && \
+    python3 -m virtualenv "$PLANEMO_VENV_LOCATION" && \
+    . "$PLANEMO_VENV_LOCATION"/bin/activate && \
+    pip install --upgrade pip setuptools && \
+    pip install planemo numpy && \
+    pip install -U planemo && \
+    #planemo conda_init --conda_prefix "$CONDA" && \
     apt-get autoremove -y && \
     apt-get clean && \
-    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
-
+    rm -rf /var/lib/apt/lists/*  && \
+    rm -rf /tmp/*  && \
+    rm -rf /var/tmp/*  && \
+    rm -rf /usr/bin/X11 ;
+    
+CMD []
\ No newline at end of file