DIVY118 commited on
Commit
b6aaf5b
·
verified ·
1 Parent(s): 4388210

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -7,8 +7,13 @@ WORKDIR /app
7
  # Install Jupyter Notebook
8
  RUN pip install --no-cache-dir notebook
9
 
 
 
 
 
 
10
  # Expose the Jupyter Notebook port
11
  EXPOSE 8888
12
 
13
  # Set the command to start Jupyter Notebook
14
- CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--port=7860", "--no-browser", "--allow-root"]
 
7
  # Install Jupyter Notebook
8
  RUN pip install --no-cache-dir notebook
9
 
10
+ # Create necessary directories and set permissions
11
+ RUN mkdir -p /.local/share/jupyter && \
12
+ mkdir -p /.local/share/jupyter/runtime && \
13
+ chmod -R 777 /.local/share/jupyter
14
+
15
  # Expose the Jupyter Notebook port
16
  EXPOSE 8888
17
 
18
  # Set the command to start Jupyter Notebook
19
+ CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--port=7860", "--no-browser", "--allow-root"]