Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +21 -3
Dockerfile
CHANGED
|
@@ -21,7 +21,26 @@ RUN npm install --production
|
|
| 21 |
|
| 22 |
# Copy application files
|
| 23 |
COPY index.js ./
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
# Expose port 7860 (Hugging Face Spaces default)
|
| 27 |
EXPOSE 7860
|
|
@@ -30,5 +49,4 @@ EXPOSE 7860
|
|
| 30 |
ENV PORT=7860
|
| 31 |
|
| 32 |
# Run the application
|
| 33 |
-
CMD ["node", "index.js"]
|
| 34 |
-
|
|
|
|
| 21 |
|
| 22 |
# Copy application files
|
| 23 |
COPY index.js ./
|
| 24 |
+
|
| 25 |
+
# Copy ALL model files (all formats)
|
| 26 |
+
COPY age_gender_model-shard1 ./
|
| 27 |
+
COPY age_gender_model-weights_manifest.json ./
|
| 28 |
+
COPY face_expression_model-shard1 ./
|
| 29 |
+
COPY face_expression_model-weights_manifest.json ./
|
| 30 |
+
COPY face_landmark_68_model-shard1 ./
|
| 31 |
+
COPY face_landmark_68_model-weights_manifest.json ./
|
| 32 |
+
COPY face_landmark_68_tiny_model-shard1 ./
|
| 33 |
+
COPY face_landmark_68_tiny_model-weights_manifest.json ./
|
| 34 |
+
COPY face_recognition_model-shard1 ./
|
| 35 |
+
COPY face_recognition_model-shard2 ./
|
| 36 |
+
COPY face_recognition_model-weights_manifest.json ./
|
| 37 |
+
COPY mtcnn_model-shard1 ./
|
| 38 |
+
COPY mtcnn_model-weights_manifest.json ./
|
| 39 |
+
COPY ssd_mobilenetv1_model-shard1 ./
|
| 40 |
+
COPY ssd_mobilenetv1_model-shard2 ./
|
| 41 |
+
COPY ssd_mobilenetv1_model-weights_manifest.json ./
|
| 42 |
+
COPY tiny_face_detector_model-shard1 ./
|
| 43 |
+
COPY tiny_face_detector_model-weights_manifest.json ./
|
| 44 |
|
| 45 |
# Expose port 7860 (Hugging Face Spaces default)
|
| 46 |
EXPOSE 7860
|
|
|
|
| 49 |
ENV PORT=7860
|
| 50 |
|
| 51 |
# Run the application
|
| 52 |
+
CMD ["node", "index.js"]
|
|
|