Spaces:
Paused
Paused
Download Dockerfile from javaeeduke/om: direct link, hf CLI and curl.
- Browser
- Download file 466 Bytes
-
https://huggingface.co/spaces/javaeeduke/om/resolve/2a2fa339fb0def8effb50d88d77070ff0ebae672/Dockerfile
- Command line
-
hf download hf://spaces/javaeeduke/om@2a2fa339fb0def8effb50d88d77070ff0ebae672/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/javaeeduke/om/resolve/2a2fa339fb0def8effb50d88d77070ff0ebae672/Dockerfile
466 Bytes
| FROM node:22-alpine | |
| # 安装运行时必需的基础轻量依赖 | |
| RUN apk add --no-cache sqlite sqlite-dev | |
| WORKDIR /app | |
| # 1. 直接安装官方在全球 npm 仓库上发布好的 omniroute 稳定版编译成品 | |
| RUN npm install -g omniroute | |
| # 2. 锁死 Hugging Face 唯一支持的 7860 端口 | |
| ENV PORT=7860 | |
| ENV OMNIROUTE_PORT=7860 | |
| ENV HOST=0.0.0.0 | |
| ENV NODE_ENV=production | |
| EXPOSE 7860 | |
| # 3. 直接通过全局命令拉起,零编译,秒开机 | |
| CMD ["omniroute"] |