# ------------------------------------------------------- # Relies on JUPYTER_PORT being set in docker-compose.yml # ------------------------------------------------------- FROM pytorch/pytorch:latest # RUN useradd -m -s /bin/bash oleg # Install packages # --- this version of jupyter is required to work with the widgets RUN pip install jupyterlab==3.6.7 # RUN pip install ipywidgets RUN pip install pandas numpy plotly # RUN pip install fastbook # Install additional applications RUN apt update RUN apt-get install graphviz -y # Set environment variables, etc. #ENV MY_ENV_VAR=myvalue # Set the working directory WORKDIR /workspace # Expose the port for JupyterLab EXPOSE ${JUPYTER_PORT} # Command to run JupyterLab CMD ["jupyter-lab", "--ip=0.0.0.0", "--port=7777", "--no-browser", "--allow-root", "--NotebookApp.token=''"]