-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee8f013
commit 0f53d57
Showing
2 changed files
with
14 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
FROM continuumio/miniconda3 | ||
|
||
FROM mambaorg/micromamba | ||
USER root | ||
RUN echo "Updating apt repositories" | ||
RUN apt update && apt upgrade -y | ||
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata | ||
RUN apt install -y build-essential gfortran mpich | ||
RUN apt autoremove -y | ||
RUN apt clean -y | ||
RUN apt update && apt upgrade -y && apt install -y git mpich | ||
USER $MAMBA_USER | ||
ARG MAMBA_DOCKERFILE_ACTIVATE=1 | ||
WORKDIR /home/mambauser | ||
RUN mkdir /tmp/numba_cache & chmod 777 /tmp/numba_cache & NUMBA_CACHE_DIR=/tmp/numba_cache | ||
WORKDIR ./ | ||
ENV NUMBA_CACHE_DIR=/tmp/numba_cache | ||
ADD . /tmp/ | ||
RUN conda env create -f /tmp/environment.yml | ||
|
||
# Pull the environment name out of the environment.yml | ||
RUN echo "source activate racs-tools" > ~/.bashrc | ||
ENV PATH /opt/conda/envs/racs-tools/bin:$PATH | ||
RUN pip install mpi4py-mpich | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER . ./src | ||
RUN echo "Installing python and uv" | ||
RUN micromamba install python=3.10 uv -y -c conda-forge && \ | ||
micromamba clean --all --yes | ||
RUN echo "Installing RACS-tools" | ||
RUN micromamba run uv pip install ./src[mpi] | ||
ENTRYPOINT ["/usr/local/bin/_entrypoint.sh"] |