Ii commited on
Commit
81c7306
·
verified ·
1 Parent(s): f10a5ac

Create dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +33 -0
dockerfile ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ # Install dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ git \
6
+ git-lfs \
7
+ ffmpeg \
8
+ libsm6 \
9
+ libxext6 \
10
+ cmake \
11
+ rsync \
12
+ libgl1-mesa-glx \
13
+ curl \
14
+ nodejs \
15
+ && rm -rf /var/lib/apt/lists/* \
16
+ && git lfs install
17
+
18
+ # Clone the insightface repository and install scrfd manually
19
+ RUN git clone https://github.com/deepinsight/insightface.git /opt/insightface && \
20
+ cd /opt/insightface && \
21
+ pip install .
22
+
23
+ # Set working directory
24
+ WORKDIR /home/user/app
25
+
26
+ # Copy the application files
27
+ COPY --chown=1000:1000 . /home/user/app
28
+
29
+ # Install Python dependencies
30
+ RUN pip install --no-cache-dir -r requirements.txt
31
+
32
+ # Command to run the application
33
+ CMD ["python", "app.py"]