Spaces:
Running
Running
Upload Dockerfile
Browse files- Dockerfile +0 -3
Dockerfile
CHANGED
|
@@ -12,9 +12,6 @@ RUN apt-get update && apt-get install -y \
|
|
| 12 |
COPY requirements.txt .
|
| 13 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
|
| 15 |
-
# Pre-download DeepFace weights during the build (so it doesn't download on first user request)
|
| 16 |
-
RUN python -c "from deepface import DeepFace; import logging; logging.getLogger('tf_keras').setLevel(logging.ERROR); DeepFace.build_model('Age'); DeepFace.build_model('Gender'); DeepFace.build_model('VGG-Face')"
|
| 17 |
-
|
| 18 |
# Copy app code
|
| 19 |
COPY app.py .
|
| 20 |
|
|
|
|
| 12 |
COPY requirements.txt .
|
| 13 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
|
|
|
|
|
|
|
|
|
|
| 15 |
# Copy app code
|
| 16 |
COPY app.py .
|
| 17 |
|