Skip to content

Commit

Permalink
updated docker image to python:3.12-slim-bullseye
Browse files Browse the repository at this point in the history
  • Loading branch information
santacodes committed Aug 7, 2024
1 parent 9053f76 commit ece5813
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions scripts/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11-slim-bullseye
FROM python:3.12-slim-bullseye

WORKDIR /

Expand All @@ -21,19 +21,20 @@ ENV CMAKE_CXX_COMPILER=/usr/bin/g++
ENV CMAKE_MAKE_PROGRAM=/usr/bin/make
ENV LD_LIBRARY_PATH=/home/pybamm/.local/lib

# Migrating to venv and create a virtual environment for python 3.11
# Migrating to venv and create a virtual environment for python 3.12
ENV VIRTUAL_ENV=/home/pybamm/venv
RUN python3.11 -m venv $VIRTUAL_ENV
RUN python3.12 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

RUN pip install --upgrade setuptools wheel wget && \
pip install cmake
RUN pip install uv
RUN uv pip install --upgrade setuptools wheel wget && \
uv pip install cmake
RUN #!/bin/bash && \
source /home/pybamm/venv/bin/activate;

RUN python scripts/install_KLU_Sundials.py && \
rm -rf pybind11 && \
git clone https://github.com/pybind/pybind11.git && \
pip install -e ".[all,dev,docs,jax,odes]";
uv pip install -e ".[all,dev,docs,jax]";

ENTRYPOINT ["/bin/bash"]

0 comments on commit ece5813

Please sign in to comment.