代码拉取完成,页面将自动刷新
# Build Pyradiomics inside the Jupyter Datascience Notebook
FROM jupyter/datascience-notebook
MAINTAINER Radiomics Project (http://github.com/radiomics)
# Build information
ARG BUILD_DATE
ARG GIT_REF
LABEL org.label-schema.build-data=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/radiomics/pyradiomics.git" \
org.label-schema.vcs-ref=$GIT_REF \
org.label-schema.schema-version="1.0.0-rc1"
USER root
ADD . /root/pyradiomics
# Install in Python 3
RUN /bin/bash -c "source activate root \
&& cd /root/pyradiomics \
&& python -m pip install --no-cache-dir -r requirements.txt \
&& python setup.py install"
# Install sample data and notebooks
ADD data/ /home/jovyan/work/data/
ADD notebooks/RadiomicsExample.ipynb /home/jovyan/work/notebooks/
ADD notebooks/FeatureVisualization.ipynb /home/jovyan/work/notebooks/
ADD notebooks/FeatureVisualizationWithClustering.ipynb /home/jovyan/work/notebooks/
ADD notebooks/FilteringEffects.ipynb /home/jovyan/work/notebooks/
ADD notebooks/helloRadiomics.ipynb /home/jovyan/work/notebooks/
ADD notebooks/helloFeatureClass.ipynb /home/jovyan/work/notebooks/
ADD notebooks/PyRadiomicsExample.ipynb /home/jovyan/work/notebooks/
ADD examples/exampleSettings/Params.yaml /home/jovyan/work/examples/exampleSettings/
# Make a global directory and link it to the work directory
RUN mkdir /data
RUN ln -s /data /home/jovyan/work/data
RUN chown -R jovyan:users /home/jovyan/work
# Trust the notebooks that we've installed
USER jovyan
RUN jupyter trust /home/jovyan/work/notebooks/*.ipynb
# Run the notebooks
RUN jupyter nbconvert --ExecutePreprocessor.kernel_name=python3 --ExecutePreprocessor.timeout=-1 --to notebook --execute /home/jovyan/work/notebooks/helloRadiomics.ipynb /home/jovyan/work/notebooks/helloFeatureClass.ipynb /home/jovyan/work/notebooks/PyRadiomicsExample.ipynb
# The user's data will show up as /data
VOLUME /data
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。