holy-script commited on
Commit
17b972f
·
verified ·
1 Parent(s): 5d73a5f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -16,11 +16,10 @@ ENV PATH="/venv/bin:$PATH"
16
  # Install required Python packages inside the virtual environment
17
  RUN pip install --no-cache-dir streamlit requests
18
 
19
- # Add NVIDIA package repositories
20
  RUN curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
21
  && echo "deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://nvidia.github.io/libnvidia-container/stable/deb/ $(. /etc/os-release; echo $UBUNTU_CODENAME) main" > /etc/apt/sources.list.d/nvidia-container-toolkit.list
22
 
23
- # Install NVIDIA container toolkit
24
  RUN apt-get update && apt-get install -y nvidia-container-toolkit || true
25
 
26
  # Install Ollama
@@ -38,8 +37,8 @@ RUN chmod +x /entrypoint.sh
38
  # Copy the application script
39
  COPY app.py /app.py
40
 
41
- # Expose the Streamlit app port
42
- EXPOSE 7860
43
 
44
  # Set the entry point script as the default command
45
  ENTRYPOINT ["/entrypoint.sh"]
 
16
  # Install required Python packages inside the virtual environment
17
  RUN pip install --no-cache-dir streamlit requests
18
 
19
+ # Install NVIDIA container toolkit
20
  RUN curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
21
  && echo "deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://nvidia.github.io/libnvidia-container/stable/deb/ $(. /etc/os-release; echo $UBUNTU_CODENAME) main" > /etc/apt/sources.list.d/nvidia-container-toolkit.list
22
 
 
23
  RUN apt-get update && apt-get install -y nvidia-container-toolkit || true
24
 
25
  # Install Ollama
 
37
  # Copy the application script
38
  COPY app.py /app.py
39
 
40
+ # Expose both ports
41
+ EXPOSE 7860 8501
42
 
43
  # Set the entry point script as the default command
44
  ENTRYPOINT ["/entrypoint.sh"]