# Use the official Python 3.10.10 image FROM python:3.10 # Set the working directory in the container WORKDIR /app # Install Jupyter Notebook and other useful packages RUN pip install --no-cache-dir notebook jupyterlab jupyterlab-lsp python-lsp-server # Create necessary directories and set permissions RUN mkdir -p /.local/share/jupyter && \ mkdir -p /.local/share/jupyter/runtime && \ chmod -R 777 /.local/share/jupyter # Expose the Jupyter Notebook port EXPOSE 7860 # Set the command to start Jupyter Notebook CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--port=7860", "--no-browser", "--allow-root"]