From ae847e958e152450b52be32b3bed4741ce813e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Mart=C3=ADn?= Date: Thu, 12 Jan 2023 14:19:39 +0100 Subject: [PATCH] feat: Add Dockerfile This allows the users to create their own docker instances of Shimmer. --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f706b3e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM ubuntu:20.04 + +ARG DEBIAN_FRONTEND=noninteractive + +# Copy content from host to container +RUN mkdir /shimmer +COPY . /shimmer + +RUN apt-get update && apt-get install -y perl r-base samtools + +RUN perl -MCPAN -e 'CPAN::Shell->install("Module::Build")' + +# Install R statmod +RUN R -e "install.packages(c('statmod'),dependencies=TRUE, repos = 'http://cran.rstudio.com/')" + +# Install Shimmer +RUN cd /shimmer && perl /shimmer/Build.PL --install_base /shimmer +RUN /shimmer/Build +RUN /shimmer/Build install + +ENV PATH="${PATH}:/shimmer/bin" +ENV PERL5LIB="/shimmer/bin/lib/perl5:${PERL5LIB}"