dosesnrolls1 commited on
Commit
c8ce7ce
·
verified ·
1 Parent(s): 6b7c59b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nvidia/cuda:12.1.0-runtime-ubuntu22.04
2
+
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ python3.10 python3-pip git ffmpeg \
6
+ && rm -rf /var/lib/apt/lists/*
7
+
8
+ WORKDIR /app
9
+
10
+ # Copy requirements and install
11
+ COPY requirements.txt .
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Force clean onnxruntime-gpu install
15
+ RUN pip uninstall -y onnxruntime onnxruntime-gpu && \
16
+ pip install onnxruntime-gpu
17
+
18
+ COPY . .
19
+
20
+ CMD ["python3", "app.py"]