forked from pinellolab/CRISPRme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update dockerfile with micromamba and correct package versions
- Loading branch information
1 parent
71c2b2b
commit 9d8ec93
Showing
1 changed file
with
14 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
# Set the base image to anaconda python 3.8 | ||
FROM continuumio/miniconda3 | ||
# Set the base image to micromamba | ||
FROM mambaorg/micromamba | ||
|
||
# File Author / Maintainer | ||
# MAINTAINER Samuele Cancelleri | ||
|
||
ENV SHELL bash | ||
# Set the variables for version control during installation | ||
ARG crispritz_version=2.6.6 | ||
ARG crisprme_version=2.1.2 | ||
|
||
#update conda channel with bioconda and conda-forge | ||
RUN conda config --add channels defaults | ||
RUN conda config --add channels conda-forge | ||
RUN conda config --add channels bioconda | ||
# set the shell to bash | ||
ENV SHELL bash | ||
# set user as root | ||
USER root | ||
|
||
#update packages of the docker system | ||
#update packages of the docker image | ||
RUN apt-get update && apt-get install gsl-bin libgsl0-dev -y && apt-get install libgomp1 -y && apt-get clean | ||
RUN apt-get upgrade -y && apt-get clean | ||
RUN apt update | ||
RUN apt upgrade -y | ||
|
||
#Install crisprme package | ||
RUN conda update -n base -c defaults conda | ||
RUN conda update --all -y | ||
RUN conda install python=3.8 -y | ||
RUN conda install crispritz -y | ||
RUN conda install crisprme=2.1.1 -y | ||
|
||
# Install crispritz & crisprme packages | ||
RUN micromamba install -y -n base -c conda-forge -c bioconda python=3.9 crispritz=$crispritz_version crisprme=$crisprme_version && micromamba clean --all --yes | ||
# Start the base environment | ||
ARG MAMBA_DOCKERFILE_ACTIVATE=1 |