Skip to content

Instantly share code, notes, and snippets.

@lh3
Created March 18, 2020 20:26
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 lh3/a21197c513d1af5e736ae0e703f8c475 to your computer and use it in GitHub Desktop.
Save lh3/a21197c513d1af5e736ae0e703f8c475 to your computer and use it in GitHub Desktop.
Tmp dockerfile
#creates a base image from condo
FROM continuumio/miniconda3
SHELL ["/bin/bash", "-c"]
COPY environment.yml .
#run environment
#RUN conda env create -f environment.yml
RUN conda init bash
RUN echo "conda activate env" > ~/.bashrc
ENV PATH /opt/conda/envs/env/bin:$PATH
COPY INSTALLATION.sh .
#run INSTALLATION.sh to install dependencies in Docker
RUN chmod +x /INSTALLATION.sh && /INSTALLATION.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment