wayne-chi commited on
Commit
c56286c
·
verified ·
1 Parent(s): 0fc06cf

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -26,15 +26,17 @@
26
 
27
  # # Command to run Streamlit app
28
  # CMD ["streamlit", "run", "streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
 
29
  # Start from NVIDIA’s CUDA image with cuDNN support
30
  FROM nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu22.04
31
 
32
  # Set working directory
33
  WORKDIR /app
34
 
35
- # Install Python + essentials
36
  RUN apt-get update && \
37
- apt-get install -y python3.10 python3.10-venv python3-pip && \
38
  rm -rf /var/lib/apt/lists/*
39
 
40
  # Copy everything into the container
@@ -61,4 +63,3 @@ EXPOSE 7860
61
  # Command to run Streamlit app
62
  CMD ["streamlit", "run", "test_app.py", "--server.port=7860", "--server.address=0.0.0.0"]
63
 
64
-
 
26
 
27
  # # Command to run Streamlit app
28
  # CMD ["streamlit", "run", "streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]
29
+
30
+
31
  # Start from NVIDIA’s CUDA image with cuDNN support
32
  FROM nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu22.04
33
 
34
  # Set working directory
35
  WORKDIR /app
36
 
37
+ # Install Python, pip, git, and other essentials
38
  RUN apt-get update && \
39
+ apt-get install -y python3.10 python3.10-venv python3-pip git curl && \
40
  rm -rf /var/lib/apt/lists/*
41
 
42
  # Copy everything into the container
 
63
  # Command to run Streamlit app
64
  CMD ["streamlit", "run", "test_app.py", "--server.port=7860", "--server.address=0.0.0.0"]
65