Spaces:
Sleeping
Sleeping
File size: 445 Bytes
c8ec87b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# Use NVIDIA PyTorch base (GPU). If CPU-only, use python:3.11-slim instead.
FROM python:3.11-slim
# Set working directory
WORKDIR /
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the server code
COPY . .
# Expose FastAPI port
EXPOSE 8080
# Default command (can be overridden)
CMD ["python", "server.py", "--model-repo", "SmilingWolf/wd-eva02-large-tagger-v3"]
|