Skip to content

Commit 078514d

Browse files
authored
Update Dockerfile, use Ubuntu 24.04 LTS (#2698)
* Update Dockerfile, use Ubuntu 24.04 LTS * Requires installing amici inside a virtual environment (`This environment is externally managed [...]`).
1 parent ffe2dc9 commit 078514d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

container/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:22.04
1+
FROM ubuntu:24.04
22

33
# install dependencies
44

@@ -18,11 +18,13 @@ RUN apt-get update && apt-get install -y \
1818
# prepare python install
1919

2020
COPY amici.tar.gz /from_host/
21-
22-
RUN pip3 install --upgrade pip build && \
21+
RUN bash -c 'python3 -m venv venv && \
22+
echo "source $HOME/venv/bin/activate" >> ~/.bashrc && \
23+
source venv/bin/activate && \
24+
pip3 install --upgrade pip build && \
2325
mkdir -p /from_host/amici/ && \
2426
cd /from_host/amici && \
2527
tar -xzf ../amici.tar.gz && cd python/sdist && \
2628
python3 -m build --sdist && \
2729
pip3 install -v $(ls -t dist/amici-*.tar.gz | head -1)[petab] && \
28-
rm -rf /from_host
30+
rm -rf /from_host'

0 commit comments

Comments
 (0)