Skip to content

Commit

Permalink
pybamm-team#3312 Install build-time requirements in a single RUN command
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Sep 10, 2023
1 parent a8661a2 commit c3eaba5
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions scripts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,33 +33,27 @@ ARG ODES
ARG JAX
ARG ALL

RUN pip install --upgrade --user pip setuptools wheel wget nox cmake

RUN if [ "$IDAKLU" = "true" ]; then \
pip install --upgrade --user pip setuptools wheel wget nox && \
pip install cmake && \
python scripts/install_KLU_Sundials.py && \
git clone https://github.com/pybind/pybind11.git && \
pip install --user -e ".[all,dev,docs]"; \
fi

RUN if [ "$ODES" = "true" ]; then \
pip install --upgrade --user pip setuptools wheel wget nox && \
pip install cmake && \
python scripts/install_KLU_Sundials.py && \
git clone https://github.com/pybind/pybind11.git && \
pip install --user -e ".[all,dev,docs,odes]"; \
fi

RUN if [ "$JAX" = "true" ]; then \
pip install --upgrade --user pip setuptools wheel wget nox && \
pip install cmake && \
python scripts/install_KLU_Sundials.py && \
git clone https://github.com/pybind/pybind11.git && \
pip install --user -e ".[all,dev,docs,jax]"; \
fi

RUN if [ "$ALL" = "true" ]; then \
pip install --upgrade --user pip setuptools wheel wget nox && \
pip install cmake && \
python scripts/install_KLU_Sundials.py && \
git clone https://github.com/pybind/pybind11.git && \
pip install --user -e ".[all,dev,docs,jax,odes]"; \
Expand Down

0 comments on commit c3eaba5

Please sign in to comment.