-
Notifications
You must be signed in to change notification settings - Fork 98
/
Dockerfile
35 lines (28 loc) · 1.21 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM mambaorg/micromamba:1.5.8 as micromamba
USER root
# Container Metadata
LABEL maintainer="mdtf-framework-team"
LABEL org.opencontainers.image.source=https://github.com/aradhakrishnanGFDL/MDTF-diagnostics/
LABEL org.opencontainers.image.description="This is a docker image for the MDTF-diagnostics package"
LABEL version="20140100.beta"
# Copy the MDTF-diagnostics package contents from local machine to image (or from git)
ENV CODE_ROOT=/proj/MDTF-diagnostics
COPY src ${CODE_ROOT}/src
COPY data ${CODE_ROOT}/data
COPY diagnostics ${CODE_ROOT}/diagnostics
COPY mdtf_framework.py ${CODE_ROOT}
COPY shared ${CODE_ROOT}/shared
COPY tests ${CODE_ROOT}/tests
# Install conda environments
ENV CONDA_ROOT=/opt/conda/
ENV CONDA_ENV_DIR=/opt/conda/envs
RUN apt-get -y update
#dev purpose only - install vim
RUN apt-get -y install vim
RUN apt-get -y install git
RUN micromamba create -f /proj/MDTF-diagnostics/src/conda/env_base.yml && \
micromamba create -f /proj/MDTF-diagnostics/src/conda/env_python3_base.yml && \
micromamba create -f /proj/MDTF-diagnostics/src/conda/_env_synthetic_data.yml && \
micromamba clean --all --yes && \
micromamba clean --force-pkgs-dirs --yes
ENV PATH="${PATH}:/proj/MDTF-diagnostics/"