Skip to content

Instantly share code, notes, and snippets.

@ResidentMario
Created October 12, 2020 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ResidentMario/d2ed161fd6403e162ff1662a96a9d0de to your computer and use it in GitHub Desktop.
Save ResidentMario/d2ed161fd6403e162ff1662a96a9d0de to your computer and use it in GitHub Desktop.
FROM ubuntu:18.04
WORKDIR /spell
RUN apt-get update && \
apt-get install -y wget git && rm -rf /var/lib/apt/lists/*
ENV CONDA_HOME=/root/anaconda/
RUN wget \
https://repo.anaconda.com/miniconda/Miniconda3-py37_4.8.3-Linux-x86_64.sh \
&& mkdir /root/.conda \
&& bash Miniconda3-py37_4.8.3-Linux-x86_64.sh -fbp $CONDA_HOME \
&& rm -f Miniconda3-py37_4.8.3-Linux-x86_64.sh
ENV PATH=/root/anaconda/bin:$PATH
# NOTE: Spell runs will fail if pip3 is not avaiable at the command line.
# conda injects pip onto the path, but not pip3, so we create a symlink.
RUN ln /root/anaconda/bin/pip /root/anaconda/bin/pip3
RUN conda install -c conda-forge \
dask-ml nodejs jupyterlab
RUN pip install dask_labextension
RUN jupyter labextension install dask-labextension
RUN jupyter serverextension enable dask_labextension
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment