Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
psathyrella committed Feb 21, 2024
1 parent 59f1ab8 commit 0c7e5a2
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM continuumio/anaconda
FROM mambaorg/micromamba:1.5.6
COPY --chown=$MAMBA_USER:$MAMBA_USER env.yaml /tmp/env.yaml
RUN micromamba install -y -n base -f /tmp/env.yaml && \
micromamba clean --all --yes

USER root
RUN apt-get --allow-releaseinfo-change update && apt-get install -y \
build-essential \
cmake \
Expand All @@ -12,13 +16,13 @@ RUN apt-get --allow-releaseinfo-change update && apt-get install -y \
libyaml-dev \
libz-dev \
ncbi-blast+ \
python-pyqt5 \
python3-pyqt5 \
vim

RUN conda install -y -cbioconda -cbiocore python biopython pandas psutil pysam scons seaborn zlib pyyaml scikit-learn mafft # -cbioconda is for pysam, -cbiocore is for mafft
RUN conda update -y numpy # the previous command downgrades numpy (I'm not sure why), which breaks the seaborn import
RUN pip install colored-traceback dendropy==4.4.0 levenshtein
COPY . /partis
USER $MAMBA_USER
ARG MAMBA_DOCKERFILE_ACTIVATE=1
RUN micromamba install -y -cconda-forge -cbioconda -cbiocore python biopython pandas psutil pysam scons seaborn zlib pyyaml scikit-learn mafft # -cbioconda is for pysam, -cbiocore is for mafft
RUN pip install colored-traceback dendropy levenshtein
COPY --chown=$MAMBA_USER:$MAMBA_USER_GID . /partis
WORKDIR /partis
RUN ./bin/build.sh
CMD ./test/test.py --quick

0 comments on commit 0c7e5a2

Please sign in to comment.