Spaces:
Build error
Build error
Upload Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
|
@@ -1,10 +1,9 @@
|
|
| 1 |
-
FROM python:3.10
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
# Install system dependencies for opencv and insightface
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
-
libgl1-mesa-glx \
|
| 8 |
libsm6 \
|
| 9 |
libxext6 \
|
| 10 |
libxrender-dev \
|
|
@@ -29,8 +28,8 @@ ENV PORT=7860
|
|
| 29 |
# Expose port
|
| 30 |
EXPOSE 7860
|
| 31 |
|
| 32 |
-
# Health check using curl
|
| 33 |
-
HEALTHCHECK --interval=30s --timeout=10s --start-period=
|
| 34 |
CMD curl -f http://localhost:7860/health || exit 1
|
| 35 |
|
| 36 |
# Run application
|
|
|
|
| 1 |
+
FROM python:3.10
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
# Install system dependencies for opencv and insightface
|
| 6 |
RUN apt-get update && apt-get install -y \
|
|
|
|
| 7 |
libsm6 \
|
| 8 |
libxext6 \
|
| 9 |
libxrender-dev \
|
|
|
|
| 28 |
# Expose port
|
| 29 |
EXPOSE 7860
|
| 30 |
|
| 31 |
+
# Health check using curl
|
| 32 |
+
HEALTHCHECK --interval=30s --timeout=10s --start-period=180s --retries=3 \
|
| 33 |
CMD curl -f http://localhost:7860/health || exit 1
|
| 34 |
|
| 35 |
# Run application
|