Skip to content

Commit

Permalink
update dockerfile with micromamba and correct package versions
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelecancellieri committed Feb 15, 2024
1 parent 71c2b2b commit 9d8ec93
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions Dockerfile
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

0 comments on commit 9d8ec93

Please sign in to comment.