orpatashnik commited on
Commit
4cccbf3
·
1 Parent(s): 352b9fc

add dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +27 -0
  2. requirements.txt +1 -1
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image with Python
2
+ FROM python:3.10-slim
3
+
4
+ # Install system dependencies required by dlib and others
5
+ RUN apt-get update && apt-get install -y \
6
+ cmake \
7
+ build-essential \
8
+ libopenblas-dev \
9
+ liblapack-dev \
10
+ libx11-dev \
11
+ libgtk-3-dev \
12
+ wget \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ # Set working directory
16
+ WORKDIR /app
17
+
18
+ # Copy requirement file and install Python dependencies
19
+ COPY requirements.txt .
20
+ RUN pip install --upgrade pip
21
+ RUN pip install -r requirements.txt
22
+
23
+ # Copy the rest of the app
24
+ COPY . .
25
+
26
+ # Run the app (update this to your actual entry point)
27
+ CMD ["python", "-m", "gradio", "app"]
requirements.txt CHANGED
@@ -3,6 +3,6 @@ transformers==4.51.2
3
  diffusers==0.33.1
4
  gradio
5
  huggingface_hub
6
- face-recognition
7
  einops
8
  scipy
 
3
  diffusers==0.33.1
4
  gradio
5
  huggingface_hub
6
+ dlib
7
  einops
8
  scipy