darkvibe314 commited on
Commit
2207b2b
·
verified ·
1 Parent(s): f941235

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+ WORKDIR /app
3
+ # Install system dependencies for OpenCV
4
+ RUN apt-get update && apt-get install -y \
5
+ libgl1-mesa-glx \
6
+ libglib2.0-0 \
7
+ wget \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ COPY . .
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ EXPOSE 7860
14
+ CMD ["python", "app.py"]