Skip to content

Commit

Permalink
install matplotlib to docker image; install cymetric with --no-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibbelink committed Oct 21, 2024
1 parent e6c9d6b commit 954489d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@ ARG pkg_mgr=apt
ARG ubuntu_version=22.04
ARG cycamore_tag=latest

FROM ghcr.io/cyclus/cycamore_${ubuntu_version}_${pkg_mgr}/cycamore:${cycamore_tag} AS cymetric
FROM ghcr.io/cyclus/cycamore_${ubuntu_version}_${pkg_mgr}/cycamore:${cycamore_tag} AS cycamore-base

FROM cycamore-base AS apt-deps
RUN apt install -y python3-matplotlib

FROM cycamore-base AS conda-deps
RUN mamba install -y matplotlib

FROM ${pkg_mgr}-deps AS cymetric
COPY . /cymetric
WORKDIR /cymetric
RUN python3 -m pip install --target $(python3 -m site --user-site) .
RUN python3 -m pip install --target $(python3 -m site --user-site) --no-deps .

FROM cymetric AS cymetric-pytest
RUN cd tests && python3 -m pytest

0 comments on commit 954489d

Please sign in to comment.