Download Dockerfile from OrganizedProgrammers/fastapi-problematic-specificity: direct link, hf CLI and curl.
- Browser
- Download file 429 Bytes
-
https://huggingface.co/spaces/OrganizedProgrammers/fastapi-problematic-specificity/resolve/40ae6815b5a7bc18a0fa409f58f2161df8a20dff/Dockerfile
- Command line
-
hf download hf://spaces/OrganizedProgrammers/fastapi-problematic-specificity@40ae6815b5a7bc18a0fa409f58f2161df8a20dff/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/OrganizedProgrammers/fastapi-problematic-specificity/resolve/40ae6815b5a7bc18a0fa409f58f2161df8a20dff/Dockerfile
429 Bytes
| FROM python:3.9 | |
| WORKDIR /app | |
| RUN python -m pip install --upgrade pip | |
| # Create cache folder and make sure it is accessible | |
| RUN mkdir -p /app/cache && chmod -R 777 /app/cache | |
| # Set environment variables for the cache | |
| ENV HF_HOME="/app/cache" | |
| ENV TORCH_HOME="/app/cache" | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |