Rafs-an09002 commited on
Commit
afa14e8
·
verified ·
1 Parent(s): 5fd4002

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -14
Dockerfile CHANGED
@@ -1,33 +1,21 @@
1
- # Nexus-Nano Inference - Fixed for Manual Model Upload
2
- # Ultra Lightweight
3
-
4
  FROM python:3.10-slim
5
 
6
  WORKDIR /app
7
 
8
- # System dependencies
9
  RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
10
 
11
- # Python dependencies
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
- # Copy application
16
  COPY app.py .
17
 
18
- # Model is already uploaded to /app/models/ by HF Spaces
19
- # No download needed!
20
-
21
  EXPOSE 7860
22
 
23
- # Environment variables
24
  ENV PYTHONUNBUFFERED=1
25
  ENV OMP_NUM_THREADS=2
26
- ENV ONNXRUNTIME_EXECUTION_MODE=sequential
27
 
28
- # Health check
29
- HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
30
  CMD curl -f http://localhost:7860/health || exit 1
31
 
32
- # Run
33
  CMD ["python", "app.py"]
 
1
+ # Nexus-Nano Inference - Path Fixed
 
 
2
  FROM python:3.10-slim
3
 
4
  WORKDIR /app
5
 
 
6
  RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
7
 
 
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
 
11
  COPY app.py .
12
 
 
 
 
13
  EXPOSE 7860
14
 
 
15
  ENV PYTHONUNBUFFERED=1
16
  ENV OMP_NUM_THREADS=2
 
17
 
18
+ HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
 
19
  CMD curl -f http://localhost:7860/health || exit 1
20
 
 
21
  CMD ["python", "app.py"]