Skip to content

Commit

Permalink
copy env.yml in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
vuillaut authored Apr 26, 2024
1 parent 2ad37ab commit 51afc36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM docker.io/condaforge/miniforge3

LABEL maintainer="CTA-LST - https://github.com/cta-observatory"

RUN conda env update -n base -f environment.yml
COPY environment.yml /tmp/environment.yml

RUN conda clean -a
# Update the base environment and clean up in one layer to reduce image size
RUN conda env update -n base -f /tmp/environment.yml && conda clean -afy

0 comments on commit 51afc36

Please sign in to comment.