Skip to content

Commit

Permalink
docker: switch to micromamba in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
js2264 committed Sep 6, 2023
1 parent 3d51256 commit 2d0d66b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 22 deletions.
31 changes: 10 additions & 21 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,16 @@
FROM continuumio/miniconda3:4.9.2
FROM mambaorg/micromamba:latest

LABEL Name=hicstuff Version=3.2.0

COPY * ./ /app/
WORKDIR /app
COPY --chown=$MAMBA_USER:$MAMBA_USER . ./

RUN conda update -y conda
RUN conda config --add channels bioconda
## Install dependencies
RUN micromamba install -y -n base --file environment.yml && \
micromamba install -y -n base pip && \
micromamba clean --all --yes

# Get 3rd party packages directly from conda
RUN conda install -c conda-forge -y \
pip \
bowtie2 \
minimap2 \
bwa \
samtools \
htslib \
pysam \
cooler \
pairtools && conda clean -afy
## Install hicstuff
RUN micromamba run python3 -m pip install -e .

RUN pip install -Ur requirements.txt
# Using pip:
RUN pip install .
#CMD ["python3", "-m", "hicstuff.main"]
ENTRYPOINT [ "hicstuff" ]
WORKDIR /home/mambauser/
ENTRYPOINT [ "/bin/bash" ]
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: base
name: hicstuff
channels:
- conda-forge
- bioconda
Expand Down

0 comments on commit 2d0d66b

Please sign in to comment.