FROM continuumio/miniconda3

WORKDIR /app

RUN conda create -n dh python=3.10 -y --quiet

# Make RUN commands use the new environment:
SHELL ["conda", "run", "-n", "dh", "/bin/bash", "-c"]

# copy the repo
COPY $PWD deephyper/

# install the package
RUN conda install gxx_linux-64 gcc_linux-64
RUN pip install -e 'deephyper/[analytics]'


# activate 'dh' environment by default
RUN echo "conda activate dh" >> ~/.bashrc

# start in /app/exp
WORKDIR /app/exp