diff --git a/Dockerfile b/Dockerfile index dc71d699e..93924b1dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]