Skip to content

Commit daf27a7

Browse files
committed
dockerfile
1 parent 79c9f50 commit daf27a7

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Diff for: Dockerfiles/1.0.43/Dockerfile

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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.43"]
14+
15+
# clone Azure ML GitHub sample notebooks
16+
RUN cd /home && git clone -b "azureml-sdk-1.0.43" --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"

0 commit comments

Comments
 (0)