Spaces:
Sleeping
Sleeping
Download Dockerfile from xTHExBEASTx/my-private-coder: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/spaces/xTHExBEASTx/my-private-coder/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/xTHExBEASTx/my-private-coder/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/xTHExBEASTx/my-private-coder/resolve/main/Dockerfile
428 Bytes
| FROM ollama/ollama:latest | |
| # Reset the entrypoint | |
| ENTRYPOINT [] | |
| # Install Python and Pip | |
| RUN apt-get update && apt-get install -y python3 python3-pip | |
| # Added 'httpx' to the installation list | |
| RUN pip3 install fastapi uvicorn httpx --break-system-packages | |
| # Copy and set up your application | |
| COPY app.py /app/app.py | |
| WORKDIR /app | |
| # Expose the ports | |
| EXPOSE 7860 | |
| EXPOSE 11434 | |
| # Start your Python script | |
| CMD ["python3", "app.py"] | |