Skip to content
Snippets Groups Projects
Dockerfile 1.03 KiB
# SPDX-FileCopyrightText: 2022 Laurent Modolo <laurent.modolo@ens-lyon.fr>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

FROM conda/miniconda3

LABEL Name=hicstuff Version=3.1.3

COPY hicstuff/* ./ /app/

RUN apt-get update && apt-get install -y procps bash

RUN apt update && apt install -y procps
RUN conda update -y -n base -c defaults conda \
&& conda init \
&& conda config --add channels r \
&& conda config --add channels defaults \
&& conda config --add channels conda-forge \
&& conda config --add channels bioconda \
&& conda create -y -n hicstuff
SHELL ["conda", "run", "-n", "hicstuff", "/bin/bash", "-c"]
RUN conda install -c conda-forge -y \
    pip \
    bowtie2 \
    minimap2 \
    bwa \
    samtools \
    htslib \
    pysam \ 
    cooler \
&& conda clean -afy \
&& pip install -Ur requirements.txt \
&& pip install . \
&& chmod -R +x /usr/local/lib/python3.10/ \
&& chmod -R +x /usr/local/lib/python3.10/lib-dynload/ \
&& echo "conda activate hicstuff" >> /root/.bashrc

ENV PATH /usr/local/envs/hicstuff/bin:/usr/local/condabin:$PATH