From 6f7fdca9981c1144b211f42c61c627dd0784ba8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bertrand=20N=C3=A9ron?= Date: Fri, 20 Jan 2023 18:16:44 +0100 Subject: [PATCH] add Dockerfile to msf 2.1 version --- Docker/Macsyfinder/Dockerfile.2.1 | 56 +++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Docker/Macsyfinder/Dockerfile.2.1 diff --git a/Docker/Macsyfinder/Dockerfile.2.1 b/Docker/Macsyfinder/Dockerfile.2.1 new file mode 100644 index 00000000..de9b7b08 --- /dev/null +++ b/Docker/Macsyfinder/Dockerfile.2.1 @@ -0,0 +1,56 @@ +######################################################################### +# MacSyFinder - Detection of macromolecular systems in protein dataset # +# using systems modelling and similarity search. # +# Authors: Sophie Abby, Bertrand Neron # +# Copyright (c) 2014-2023 Institut Pasteur (Paris) and CNRS. # +# See the COPYRIGHT file for details # +# # +# This file is part of MacSyFinder package. # +# # +# MacSyFinder is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# MacSyFinder is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details . # +# # +# You should have received a copy of the GNU General Public License # +# along with MacSyFinder (COPYING). # +# If not, see . # +######################################################################### + +FROM ubuntu:22.10 + +LABEL org.opencontainers.image.authors="Bertrand Neron " +LABEL org.label-schema.vendor='Institut Pasteur' +LABEL org.label-schema.vcs-url='https://github.com/gem-pasteur/macsyfinder' +LABEL license="GPLv3" + +USER root +ARG DEBIAN_FRONTEND=noninteractive + +# disable use of python cache ~/.local https://peps.python.org/pep-0370/ +# for build and run +# thank's Eric Deveaud https://github.com/EricDeveaud +ENV PYTHONNOUSERSITE=1 + +RUN apt-get update -y &&\ + apt-get install -y --no-install-recommends hmmer python3.11 python3-pip +RUN apt-get clean -y + +RUN pip3 install macsyfinder==2.1 + +COPY --chmod=755 macsyfinder-entrypoint.sh /usr/local/bin/macsyfinder-entrypoint.sh + +ENV DEBIAN_FRONTEND teletype +ENV PYTHONIOENCODING UTF-8 + +RUN useradd -m msf +USER msf +WORKDIR /home/msf + +CMD macsyfinder --help +ENTRYPOINT ["/usr/local/bin/macsyfinder-entrypoint.sh"]