Skip to content

Commit

Permalink
Fix dockerfile definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Donaim committed Oct 21, 2024
1 parent 7d7be55 commit 13cce78
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,28 +86,15 @@ RUN apt-get install -q -y zlib1g-dev libncurses5-dev libncursesw5-dev && \
## Install dependencies for genetracks/drawsvg
RUN apt-get install -q -y libcairo2-dev

COPY pyproject.toml /opt/micall/
COPY . /opt/micall/

## Python packages, plus trigger matplotlib to build its font cache
WORKDIR /opt
RUN pip install --upgrade pip && \
pip install .[basespace] && \
python -c 'import matplotlib; matplotlib.use("Agg"); import matplotlib.pyplot'
RUN pip install --upgrade pip
RUN pip install /opt/micall
RUN micall make_blast_db

## MiCall
COPY micall_docker.py micall_kive.py micall_kive_resistance.py version.tx[t] /opt/micall/
COPY micall/__init__.py micall/project* /opt/micall/micall/

COPY micall/blast_db/make_blast_db.py /opt/micall/micall/blast_db/make_blast_db.py
COPY micall/core /opt/micall/micall/core/
COPY micall/data /opt/micall/micall/data/
COPY micall/drivers /opt/micall/micall/drivers/
COPY micall/g2p /opt/micall/micall/g2p/
COPY micall/resistance /opt/micall/micall/resistance/
COPY micall/monitor /opt/micall/micall/monitor/
COPY micall/utils /opt/micall/micall/utils/

RUN python /opt/micall/micall/blast_db/make_blast_db.py
## Trigger matplotlib to build its font cache
RUN pip install .[basespace]
RUN python -c 'import matplotlib; matplotlib.use("Agg"); import matplotlib.pyplot'

WORKDIR /data
ENTRYPOINT ["python", "/opt/micall/micall_docker.py"]
ENTRYPOINT ["micall", "micall_docker"]

0 comments on commit 13cce78

Please sign in to comment.