Test-api / Dockerfile
Shio-Koube's picture
Update Dockerfile
41f0c4a verified
raw
history blame contribute delete
399 Bytes
FROM nvcr.io/nvidia/pytorch:24.06-py3
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Fix: make models and cache dirs writable
RUN mkdir -p /app/models /app/.cache && chmod -R 777 /app/models /app/.cache
ENV HF_HOME=/app/.cache
COPY . .
EXPOSE 7860
CMD python server.py --model-repo SmilingWolf/wd-eva02-large-tagger-v3 --port 7860 --token $HF_TOKEN