kkt-2002 commited on
Commit
5d39f5a
·
1 Parent(s): be50490

Fix DeepFace directory permission error

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install system dependencies (FIXED)
6
  RUN apt-get update && apt-get install -y \
7
  libglib2.0-0 \
8
  libsm6 \
@@ -16,6 +16,9 @@ RUN apt-get update && apt-get install -y \
16
  COPY requirements.txt .
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
 
 
 
19
  COPY . .
20
 
21
  EXPOSE 7860
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies
6
  RUN apt-get update && apt-get install -y \
7
  libglib2.0-0 \
8
  libsm6 \
 
16
  COPY requirements.txt .
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
+ # FIX: Create DeepFace directory with proper permissions
20
+ RUN mkdir -p /app/.deepface && chmod 755 /app/.deepface
21
+
22
  COPY . .
23
 
24
  EXPOSE 7860