File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM  continuumio/miniconda:4.5.11
2+ 
3+ #  install git
4+ RUN  apt-get update && apt-get upgrade -y && apt-get install -y git
5+ 
6+ #  create a new conda environment named azureml
7+ RUN  conda create -n azureml -y -q Python=3.6
8+ 
9+ #  install additional packages used by sample notebooks. this is optional
10+ RUN  ["/bin/bash" , "-c" , "source activate azureml && conda install -y tqdm cython matplotlib scikit-learn" ]
11+ 
12+ #  install azurmel-sdk components
13+ RUN  ["/bin/bash" , "-c" , "source activate azureml && pip install azureml-sdk[notebooks]==1.0.17" ]
14+ 
15+ #  clone Azure ML GitHub sample notebooks
16+ RUN  cd /home && git clone -b "azureml-sdk-1.0.17"  --single-branch https://github.com/Azure/MachineLearningNotebooks.git
17+ 
18+ #  generate jupyter configuration file
19+ RUN  ["/bin/bash" , "-c" , "source activate azureml && mkdir ~/.jupyter && cd ~/.jupyter && jupyter notebook --generate-config" ]
20+ 
21+ #  set an emtpy token for Jupyter to remove authentication. 
22+ #  this is NOT recommended for production environment
23+ RUN  echo "c.NotebookApp.token = ''"  >> ~/.jupyter/jupyter_notebook_config.py
24+ 
25+ #  open up port 8887 on the container
26+ EXPOSE  8887
27+ 
28+ #  start Jupyter notebook server on port 8887 when the container starts
29+ CMD  /bin/bash -c "cd /home/MachineLearningNotebooks && source activate azureml && jupyter notebook --port 8887 --no-browser --ip 0.0.0.0 --allow-root" 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments