Download Dockerfile from maxxcarl/mann: direct link, hf CLI and curl.
- Browser
- Download file 582 Bytes
-
https://huggingface.co/spaces/maxxcarl/mann/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/maxxcarl/mann/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/maxxcarl/mann/resolve/main/Dockerfile
582 Bytes
| FROM ollama/ollama:latest | |
| # Install Python + required packages (FIXED) | |
| RUN apt-get update && apt-get install -y \ | |
| python3 \ | |
| python3-pip \ | |
| python3-venv \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Create virtual environment | |
| RUN python3 -m venv /opt/venv | |
| ENV PATH="/opt/venv/bin:$PATH" | |
| # Copy and install requirements | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Copy all files | |
| COPY . . | |
| # Make start script executable | |
| RUN chmod +x start.sh | |
| EXPOSE 7860 | |
| # Override default entrypoint | |
| ENTRYPOINT [] | |
| CMD ["./start.sh"] |