Download Dockerfile from otion/NEW: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/spaces/otion/NEW/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/otion/NEW/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/otion/NEW/resolve/main/Dockerfile
1.12 kB
| # 使用 Debian 作為基礎映像,因為 Jackett 和 Python 的相容性都很好 | |
| FROM debian:bullseye-slim | |
| # 設定工作目錄 | |
| WORKDIR /app | |
| # 安裝 Jackett 和 torrra 所需的依賴套件 | |
| # wget, tar 用於下載和解壓縮 Jackett | |
| # python3, python3-pip 用於 torrra | |
| # libicu-dev, libssl-dev, libcurl4-openssl-dev 用於 Jackett 執行環境 | |
| RUN apt-get update && apt-get install -y \ | |
| wget \ | |
| tar \ | |
| python3 \ | |
| python3-pip \ | |
| python3-venv \ | |
| libicu-dev \ | |
| libssl-dev \ | |
| libcurl4-openssl-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 下載並安裝 Jackett | |
| # 前往 https://github.com/Jackett/Jackett/releases 取得最新版本的連結 | |
| ENV JACKETT_VERSION=v0.21.2420 | |
| RUN wget -q "https://github.com/Jackett/Jackett/releases/download/v0.22.2343/Jackett.Binaries.LinuxAMDx64.tar.gz" -O jackett.tar.gz \ | |
| && tar -xzf jackett.tar.gz \ | |
| && rm jackett.tar.gz | |
| # 安裝 torrra | |
| RUN pip3 install pipx | |
| RUN pipx install torrra | |
| ENV PATH="/root/.local/bin:$PATH" | |
| # 複製並授權啟動腳本 | |
| COPY start.sh . | |
| RUN chmod +x ./start.sh | |
| # 設定容器啟動時執行的命令 | |
| CMD ["./start.sh"] |