|
@@ -0,0 +1,40 @@
|
|
|
+FROM quay.io/jupyter/docker-stacks-foundation
|
|
|
+
|
|
|
+SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
|
+
|
|
|
+USER root
|
|
|
+RUN mkdir /workspace
|
|
|
+RUN chmod 777 -R /workspace
|
|
|
+RUN mamba install --yes \
|
|
|
+ jupyter_kernel_gateway \
|
|
|
+ ipykernel \
|
|
|
+ matplotlib \
|
|
|
+ numpy \
|
|
|
+ pandas \
|
|
|
+ seaborn \
|
|
|
+ pyecharts[all] \
|
|
|
+ scipy \
|
|
|
+ scikit-learn\
|
|
|
+ PyYAML\
|
|
|
+ pillow\
|
|
|
+ numba\
|
|
|
+ matplotlib-inline\
|
|
|
+ MarkupSafe\
|
|
|
+ six\
|
|
|
+ requests \
|
|
|
+ openpyxl && \
|
|
|
+ mamba clean --all -f -y && \
|
|
|
+ fix-permissions "${CONDA_DIR}" && \
|
|
|
+ fix-permissions "/workspace"
|
|
|
+
|
|
|
+ENV TOKEN="UNSET"
|
|
|
+CMD python -m jupyter kernelgateway \
|
|
|
+ --KernelGatewayApp.ip=0.0.0.0 \
|
|
|
+ --KernelGatewayApp.port=8888 \
|
|
|
+ --KernelGatewayApp.auth_token="${TOKEN}" \
|
|
|
+ --JupyterApp.answer_yes=true \
|
|
|
+ --JupyterWebsocketPersonality.list_kernels=true
|
|
|
+
|
|
|
+EXPOSE 8888
|
|
|
+
|
|
|
+WORKDIR /workspace
|