Dockerfile 630 B

1234567891011121314151617181920212223
  1. FROM python:alpine
  2. # Install required packages
  3. RUN apk add --update alpine-sdk
  4. RUN apk add --update git
  5. RUN apk add --update nodejs
  6. # Install Jupyter
  7. RUN pip install jupyter
  8. RUN pip install ipywidgets
  9. RUN jupyter nbextension enable --py widgetsnbextension
  10. # Install JupyterLab
  11. RUN pip install jupyterlab && jupyter serverextension enable --py jupyterlab
  12. # Install Python Packages & Requirements (Done near end to avoid invalidating cache)
  13. ADD requirements.txt requirements.txt
  14. RUN apk add --update py-matplotlib py-numpy py-pika
  15. RUN pip install -r requirements.txt
  16. # Expose Jupyter port & cmd
  17. EXPOSE 8888
  18. CMD ["jupyter lab"]