Download Dockerfile from git95/moviebox: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/spaces/git95/moviebox/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/git95/moviebox/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/git95/moviebox/resolve/main/Dockerfile
1.04 kB
| FROM ubuntu:22.04 | |
| # Avoid interactive prompts during apt install | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # Install dependencies and Squid | |
| RUN apt-get update && apt-get install -y \ | |
| curl \ | |
| gnupg2 \ | |
| ca-certificates \ | |
| squid \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Add the ngrok repository GPG key and register repository | |
| RUN curl -sSL https://ngrok-agent.s3.amazonaws.com/ngrok.asc | tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null \ | |
| && echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | tee /etc/apt/sources.list.d/ngrok.list \ | |
| && apt-get update \ | |
| && apt-get install -y ngrok \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy Squid configuration | |
| COPY squid.conf /etc/squid/squid.conf | |
| # Copy entrypoint script | |
| COPY entrypoint.sh /usr/local/bin/entrypoint.sh | |
| # Ensure entrypoint has executable permissions and Unix line endings | |
| RUN chmod +x /usr/local/bin/entrypoint.sh \ | |
| && sed -i 's/\r$//' /usr/local/bin/entrypoint.sh | |
| # Expose Squid default port | |
| EXPOSE 7860 | |
| ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] | |