19 lines
511 B
Docker
19 lines
511 B
Docker
FROM continuumio/miniconda3
|
|
|
|
|
|
RUN /opt/conda/bin/conda install jupyter -y --quiet
|
|
RUN mkdir -p /opt/notebooks
|
|
RUN chown -R root:root /opt/notebooks
|
|
|
|
# Set working dir and expose the same port as your compose file (80)
|
|
WORKDIR /opt/notebooks
|
|
VOLUME ["/opt/notebooks"]
|
|
EXPOSE 80
|
|
|
|
# Start jupyter on port 80 and keep logs in /root/jupyter.log
|
|
ENTRYPOINT ["/bin/bash", "-c", "/opt/conda/bin/jupyter notebook --notebook-dir=/opt/notebooks --ip='*' --port=80 --no-browser --allow-root > /root/jupyter.log 2>&1"]
|
|
|
|
|
|
|
|
|
|
|