Skip to content

Instantly share code, notes, and snippets.

@peterfoley
Created February 13, 2020 19:25
Show Gist options
  • Save peterfoley/bd3bd05f8e49843bea87bb48bc57c6ff to your computer and use it in GitHub Desktop.
Save peterfoley/bd3bd05f8e49843bea87bb48bc57c6ff to your computer and use it in GitHub Desktop.
Install causalml from source after installing requirements from conda-forge
ARG BASE_IMAGE=continuumio/miniconda3
FROM ${BASE_IMAGE}
ARG BASE_IMAGE
RUN git clone https://github.com/uber/causalml.git
WORKDIR causalml
RUN conda create -n my_env python=3.6
RUN conda install -n my_env -c conda-forge --file requirements.txt
# miniconda base doesn't have headers or gcc
RUN apt-get update && apt-get install -y gcc
SHELL ["conda", "run", "-n", "my_env", "/bin/bash", "-c"]
RUN pip install -e .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment