Deevyankar commited on
Commit
157d1a7
·
verified ·
1 Parent(s): 1dc60c2

Create Final Dockerfile

Browse files
Files changed (1) hide show
  1. Final Dockerfile +19 -0
Final Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
2
+
3
+ # Install Python 3.10, pip, system dependencies
4
+ RUN apt-get update && \
5
+ apt-get install -y python3.10 python3.10-dev python3-pip libgl1-mesa-glx libglib2.0-0 ffmpeg && \
6
+ ln -s /usr/bin/python3.10 /usr/bin/python
7
+
8
+ # Set working directory
9
+ WORKDIR /app
10
+
11
+ # Copy all files
12
+ COPY . /app
13
+
14
+ # Install Python dependencies
15
+ RUN pip install --upgrade pip
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Run Streamlit app on container startup
19
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]