Spaces:
Runtime error
Runtime error
Download Dockerfile from karma-devops/shellwhisperer-demo: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/spaces/karma-devops/shellwhisperer-demo/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/karma-devops/shellwhisperer-demo/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/karma-devops/shellwhisperer-demo/resolve/main/Dockerfile
413 Bytes
| FROM ollama/ollama:latest | |
| ENTRYPOINT [] | |
| RUN apt-get update -qq && apt-get install -y -qq python3 python3-pip python3-venv curl && rm -rf /var/lib/apt/lists/* | |
| RUN python3 -m venv /venv | |
| ENV PATH=/venv/bin:$PATH | |
| RUN pip3 install -q gradio requests fastapi uvicorn python-multipart | |
| WORKDIR /app | |
| COPY app.py . | |
| EXPOSE 7860 | |
| CMD ollama serve & sleep 3 && ollama pull FableForge-AI/shellwhisperer && python3 app.py | |