Dockerfile 489 B

1234567891011121314151617181920
  1. FROM pytorch/pytorch
  2. # Update and add usefull package
  3. RUN apt-get update
  4. RUN apt-get install -y libglib2.0-dev libsm-dev libxrender-dev libxext-dev
  5. # Install JupyterLab
  6. RUN pip install jupyterlab && jupyter serverextension enable --py jupyterlab
  7. COPY requirements.txt requirements.txt
  8. RUN pip install -r requirements.txt
  9. ENV LANG=C.UTF-8
  10. # Expose Jupyter port & cmd
  11. EXPOSE 8888
  12. EXPOSE 6006
  13. CMD jupyter-lab --ip=0.0.0.0 --port=8888 --no-browser --notebook-dir=/data --allow-root