Download Dockerfile from HuggingFace0920/RustDesk-API2: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/spaces/HuggingFace0920/RustDesk-API2/resolve/6b2d0342ca92946dd74ff2e13adf85a8a6e39cce/Dockerfile
- Command line
-
hf download hf://spaces/HuggingFace0920/RustDesk-API2@6b2d0342ca92946dd74ff2e13adf85a8a6e39cce/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HuggingFace0920/RustDesk-API2/resolve/6b2d0342ca92946dd74ff2e13adf85a8a6e39cce/Dockerfile
1.1 kB
| FROM debian:stable | |
| WORKDIR /app | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| curl \ | |
| ca-certificates \ | |
| gdebi-core && \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN LATEST_VERSION=$(curl -s "https://api.github.com/repos/lejianwen/rustdesk-api/releases/latest" | \ | |
| grep '"tag_name":' | sed -E 's/.*"v?([^"]+)".*/\1/') && \ | |
| echo "Latest version: $LATEST_VERSION" && \ | |
| curl -LO "https://github.com/lejianwen/rustdesk-api/releases/download/v${LATEST_VERSION}/rustdesk-api-server_${LATEST_VERSION}_amd64.deb" || \ | |
| curl -LO "https://github.com/lejianwen/rustdesk-api/releases/download/${LATEST_VERSION}/rustdesk-api-server_${LATEST_VERSION}_amd64.deb" | |
| # 使用dpkg强制安装并自动修复依赖 | |
| RUN dpkg -i --ignore-depends=systemd rustdesk-api-server_*_amd64.deb || apt-get install -f -y && \ | |
| rm rustdesk-api-server_*_amd64.deb | |
| # 查找可执行文件路径 | |
| RUN find / -name "rustdesk-api-server" -type f -executable -ls | |
| EXPOSE 21115 | |
| # 使用完整路径运行(根据上一步查找的实际路径调整) | |
| CMD ["/usr/bin/rustdesk-api-server"] |