Delete Dockerfile
Browse files- Dockerfile +0 -22
Dockerfile
DELETED
|
@@ -1,22 +0,0 @@
|
|
| 1 |
-
# ---------- SNP-Universal-Embedding Deployment ----------
|
| 2 |
-
FROM python:3.10-slim
|
| 3 |
-
|
| 4 |
-
# Prevent interactive prompts
|
| 5 |
-
ENV DEBIAN_FRONTEND=noninteractive
|
| 6 |
-
WORKDIR /app
|
| 7 |
-
|
| 8 |
-
# Copy everything in your repo (model files, api_inference.py, etc.)
|
| 9 |
-
COPY . .
|
| 10 |
-
|
| 11 |
-
# Install system & Python dependencies
|
| 12 |
-
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
| 13 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
-
|
| 15 |
-
# Expose the FastAPI / Uvicorn default port
|
| 16 |
-
EXPOSE 7860
|
| 17 |
-
|
| 18 |
-
# Healthcheck route expected by HF Endpoints
|
| 19 |
-
HEALTHCHECK CMD curl --fail http://localhost:7860/health || exit 1
|
| 20 |
-
|
| 21 |
-
# Run your inference script
|
| 22 |
-
CMD ["python", "api_inference.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|