Download Dockerfile from sanch1txp/ML: direct link, hf CLI and curl.
- Browser
- Download file 613 Bytes
-
https://huggingface.co/spaces/sanch1txp/ML/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sanch1txp/ML/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sanch1txp/ML/resolve/main/Dockerfile
613 Bytes
| FROM python:3.10-slim | |
| # Install required system packages | |
| RUN apt-get update && apt-get install -y \ | |
| curl git tmux ffmpeg aria2 \ | |
| libmagic-dev build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Clone your repo during build | |
| RUN git clone https://github.com/sanch1tt/ML.git /app | |
| WORKDIR /app | |
| # Set full permissions | |
| RUN chmod -R 777 /app | |
| # Remove sabnzbdapi to avoid error | |
| RUN sed -i '/sabnzbdapi/d' requirements.txt | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Add entrypoint script | |
| COPY start.sh /start.sh | |
| RUN chmod +x /start.sh | |
| EXPOSE 7860 | |
| CMD ["/start.sh"] |