Spaces:
Runtime error
Runtime error
Download Dockerfile from Sanket17/google-flan-api: direct link, hf CLI and curl.
- Browser
- Download file 348 Bytes
-
https://huggingface.co/spaces/Sanket17/google-flan-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Sanket17/google-flan-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Sanket17/google-flan-api/resolve/main/Dockerfile
348 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| COPY ./ /app | |
| ENV HF_HOME=/app/cache | |
| ENV TRANSFORMERS_CACHE=/app/cache | |
| ENV TORCH_HOME=/app/cache | |
| RUN mkdir -p /app/cache && chmod -R 777 /app/cache | |
| RUN pip install -r requirements.txt | |
| RUN pip install "fastapi[standard]" | |
| RUN pip install "uvicorn[standard]" | |
| CMD fastapi run --reload --host=0.0.0.0 --port=7860 |