14 lines
569 B
Docker
14 lines
569 B
Docker
RUN python3 -m pip install --no-cache-dir jupyter matplotlib
|
|
# Pin ipykernel and nbformat; see https://github.com/ipython/ipykernel/issues/422
|
|
RUN python3 -m pip install --no-cache-dir jupyter_http_over_ws ipykernel==5.1.1 nbformat==4.4.0
|
|
RUN jupyter serverextension enable --py jupyter_http_over_ws
|
|
|
|
RUN mkdir -p /tf/ && chmod -R a+rwx /tf/
|
|
RUN mkdir /.local && chmod a+rwx /.local
|
|
WORKDIR /tf
|
|
EXPOSE 8888
|
|
|
|
RUN python3 -m ipykernel.kernelspec
|
|
|
|
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root"]
|