MusaedMusaedSadeqMusaedAl-Fareh225739 commited on
Commit
a59eb8d
·
1 Parent(s): 5f8640c

Fixed dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -67,8 +67,8 @@ COPY --link --chown=1000:1000 app.py ./
67
  RUN mkdir -p /app/weights /app/avatar/static
68
 
69
  # Fix openface bug
70
- RUN python3.11 -c "import os; fp='/usr/local/lib/python3.11/dist-packages/openface/multitask_model.py'; c=open(fp).read() if os.path.exists(fp) else ''; exec(\"if os.path.exists(fp) and 'import cv2' not in c:\\n open(fp,'w').write('import cv2\\n'+c)\\n print('Patched')\")"
71
-
72
  # Build frontend
73
  COPY avatar-frontend/package*.json ./frontend/
74
  WORKDIR /app/frontend
 
67
  RUN mkdir -p /app/weights /app/avatar/static
68
 
69
  # Fix openface bug
70
+ # Fix openface bug
71
+ RUN python3.11 -c "import os; fp='/usr/local/lib/python3.11/dist-packages/openface/multitask_model.py'; c=open(fp).read() if os.path.exists(fp) else ''; open(fp,'w').write('import cv2\n'+c) if os.path.exists(fp) and 'import cv2' not in c else None; print('Patched')"
72
  # Build frontend
73
  COPY avatar-frontend/package*.json ./frontend/
74
  WORKDIR /app/frontend