bleckhert commited on
Commit
e281d92
·
verified ·
1 Parent(s): ba804d1

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies for OpenCV
6
+ RUN apt-get update && \
7
+ apt-get install -y --no-install-recommends \
8
+ libgl1-mesa-glx libglib2.0-0 libsm6 libxext6 libxrender-dev libgomp1 \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Install Python dependencies
12
+ COPY requirements.txt /app/
13
+ RUN pip install --no-cache-dir -r /app/requirements.txt
14
+
15
+ # Copy app
16
+ COPY app.py /app/
17
+
18
+ # Expose the port Gradio runs on
19
+ EXPOSE 7860
20
+
21
+ # Run the app
22
+ CMD ["python", "/app/app.py"]