SakibRumu commited on
Commit
62f38c4
·
verified ·
1 Parent(s): 02edfbf

Create dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +27 -0
dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Hugging Face Spaces base image
2
+ FROM huggingface/gradio:3.50.2
3
+
4
+ # Install system dependencies for dlib
5
+ RUN apt-get update && apt-get install -y \
6
+ build-essential \
7
+ cmake \
8
+ libopenblas-dev \
9
+ liblapack-dev \
10
+ libx11-dev \
11
+ libpng-dev \
12
+ libjpeg-dev \
13
+ libgif-dev \
14
+ && rm -rf /var/lib/apt/lists/*
15
+
16
+ # Copy requirements.txt and install Python dependencies
17
+ COPY requirements.txt .
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
+
20
+ # Copy the app
21
+ COPY app.py .
22
+
23
+ # Expose the port Gradio uses
24
+ EXPOSE 7860
25
+
26
+ # Run the app
27
+ CMD ["python", "app.py"]