Simrandhiman commited on
Commit
53f7e64
·
verified ·
1 Parent(s): fd70477

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Writable paths for YOLO
6
+ ENV YOLO_CONFIG_DIR=/tmp
7
+ ENV HOME=/tmp
8
+
9
+ # System dependencies
10
+ RUN apt-get update && apt-get install -y --no-install-recommends \
11
+ libgl1 \
12
+ libglib2.0-0 \
13
+ ffmpeg \
14
+ git \
15
+ && rm -rf /var/lib/apt/lists/*
16
+
17
+ # Copy files
18
+ COPY requirements.txt .
19
+ COPY app.py .
20
+
21
+ # Install Python dependencies
22
+ RUN pip install --no-cache-dir -r requirements.txt
23
+
24
+ # Expose Gradio port
25
+ EXPOSE 7860
26
+
27
+ CMD ["python", "app.py"]