shank Cursor commited on
Commit ·
182d3be
1
Parent(s): 76ccb75
fix: remove Dockerfile - unused in sdk:gradio mode, was blocking build
Browse files- Dockerfile +0 -24
Dockerfile
DELETED
|
@@ -1,24 +0,0 @@
|
|
| 1 |
-
FROM pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime
|
| 2 |
-
|
| 3 |
-
WORKDIR /app
|
| 4 |
-
|
| 5 |
-
# Install curl for healthcheck
|
| 6 |
-
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
|
| 7 |
-
|
| 8 |
-
# torch + CUDA 12.1 + cuDNN 8 are already in the base image.
|
| 9 |
-
# requirements.txt installs only the remaining app-level deps.
|
| 10 |
-
COPY requirements.txt .
|
| 11 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
-
|
| 13 |
-
# Copy all application code
|
| 14 |
-
COPY . .
|
| 15 |
-
|
| 16 |
-
# Port 8000 is required by hackathon infrastructure
|
| 17 |
-
EXPOSE 8000
|
| 18 |
-
|
| 19 |
-
# Health check — hackathon automated ping requires this to return 200
|
| 20 |
-
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
|
| 21 |
-
CMD curl -f http://localhost:8000/health || exit 1
|
| 22 |
-
|
| 23 |
-
# Single worker — environment is 2vCPU, multi-worker causes resource issues
|
| 24 |
-
CMD ["uvicorn", "env.server:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|