Spaces:
Sleeping
Sleeping
Download Dockerfile from ashish-001/text-embedding-api: direct link, hf CLI and curl.
- Browser
- Download file 333 Bytes
-
https://huggingface.co/spaces/ashish-001/text-embedding-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ashish-001/text-embedding-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ashish-001/text-embedding-api/resolve/main/Dockerfile
333 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| COPY . /app | |
| RUN pip install --no-cache-dir -r requirements.txt uvicorn | |
| ENV HF_HOME=/home/user/cache | |
| ENV TORCH_HOME=/home/user/cache | |
| RUN mkdir -p /home/user/cache && chmod -R 777 /home/user/cache | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["uvicorn","app:app","--host","0.0.0.0","--port","7860"] |