Skip to content

Commit

Permalink
Update dkg docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaris committed Jul 13, 2023
1 parent d09ca6f commit 8b12be9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:22.04

WORKDIR /sw

Expand All @@ -10,6 +10,8 @@ RUN apt-get update && \
apt-get install -y neo4j && \
apt-get install -y git zip unzip bzip2 gcc graphviz graphviz-dev \
pkg-config python3 python3-pip && \
# purge blinker here to avoid pip uninstall error below
apt-get purge -y python3-blinker && \
ln -s /usr/bin/python3 /usr/bin/python

ARG version=2023-07-07
Expand All @@ -25,10 +27,14 @@ RUN wget -O /sw/nodes.tsv.gz https://askem-mira.s3.amazonaws.com/dkg/$domain/bui
neo4j-admin import --delimiter='TAB' --skip-duplicate-nodes=true --skip-bad-relationships=true --nodes /sw/nodes.tsv.gz --relationships /sw/edges.tsv.gz

# Python packages
RUN python -m pip install git+https://github.com/indralab/mira.git@main#egg=mira[web,uvicorn,dkg-client] && \
RUN python -m pip install --upgrade pip && \
python -m pip install git+https://github.com/indralab/mira.git@mathml-sympy#egg=mira[web,uvicorn,dkg-client] && \
python -m pip uninstall -y flask_bootstrap && \
python -m pip uninstall -y bootstrap_flask && \
python -m pip install bootstrap_flask
python -m pip install bootstrap_flask && \
python -m pip install --no-dependencies pint && \
python -m pip install --no-dependencies "lxml>=4.6.4" && \
python -m pip install --no-dependencies git+https://github.com/dweindl/sbmlmath.git

COPY startup.sh startup.sh
ENTRYPOINT ["/bin/bash", "/sw/startup.sh"]

0 comments on commit 8b12be9

Please sign in to comment.