jinksQspider commited on
Commit
e4e8b4f
·
unverified ·
1 Parent(s): dc4d198

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -1,10 +1,9 @@
1
- FROM python:3.10-slim
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 instead of Python
33
- HEALTHCHECK --interval=30s --timeout=10s --start-period=120s --retries=3 \
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