KamalamSivakumar commited on
Commit
27e88f5
·
verified ·
1 Parent(s): 3897931

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -5,13 +5,13 @@ FROM python:3.9
5
  WORKDIR /app
6
 
7
  # Install Jupyter Notebook
8
- RUN pip install notebook
9
 
10
  # Copy your .ipynb file into the Docker container
11
  COPY Wallpaper_Preference_Learning.ipynb /app/Wallpaper_Preference_Learning.ipynb
12
 
13
  # Expose the port that Jupyter Notebook will run on
14
- EXPOSE 8888
15
 
16
  # Run Jupyter Notebook
17
  CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root"]
@@ -20,4 +20,4 @@ CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--al
20
  COPY requirements.txt /app/requirements.txt
21
 
22
  # Install the dependencies
23
- RUN pip install -r requirements.txt
 
5
  WORKDIR /app
6
 
7
  # Install Jupyter Notebook
8
+ RUN pip install --no-cache-dir notebook
9
 
10
  # Copy your .ipynb file into the Docker container
11
  COPY Wallpaper_Preference_Learning.ipynb /app/Wallpaper_Preference_Learning.ipynb
12
 
13
  # Expose the port that Jupyter Notebook will run on
14
+ EXPOSE 7860 8888
15
 
16
  # Run Jupyter Notebook
17
  CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root"]
 
20
  COPY requirements.txt /app/requirements.txt
21
 
22
  # Install the dependencies
23
+ RUN pip install --no-cache-dir -r requirements.txt