Spaces:
Runtime error
Runtime error
Download Dockerfile from Anuj1718/Hellbot: direct link, hf CLI and curl.
- Browser
- Download file 846 Bytes
-
https://huggingface.co/spaces/Anuj1718/Hellbot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Anuj1718/Hellbot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Anuj1718/Hellbot/resolve/main/Dockerfile
846 Bytes
| FROM rendyprojects/python:latest | |
| # Install dependencies | |
| RUN apt-get update && \ | |
| apt-get install --no-install-recommends -y \ | |
| python3-dev \ | |
| python3-pip \ | |
| python3-virtualenv \ | |
| git \ | |
| mediainfo \ | |
| nano \ | |
| ffmpeg \ | |
| unzip && \ | |
| apt-get clean && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install them | |
| COPY ./reqs.txt /HellBot/reqs.txt | |
| RUN pip3 install --no-cache-dir -U -r /HellBot/reqs.txt | |
| # Set working directory | |
| WORKDIR /HellBot | |
| # Copy the application code | |
| COPY . . | |
| # Set appropriate permissions | |
| RUN chown -R 1000:0 /HellBot \ | |
| && chown -R 1000:0 . \ | |
| && chmod 777 . \ | |
| && chmod 777 /usr \ | |
| && chown -R 1000:0 /usr \ | |
| && chmod -R 755 /HellBot \ | |
| && chmod +x /HellBot/start.sh | |
| # Expose port | |
| EXPOSE 7860 | |
| # Start the application using the start.sh script | |
| CMD ["./start.sh"] | |