Spaces:
Running
Running
Download Dockerfile from wd21/catpawplay: direct link, hf CLI and curl.
- Browser
- Download file 407 Bytes
-
https://huggingface.co/spaces/wd21/catpawplay/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/wd21/catpawplay/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/wd21/catpawplay/resolve/main/Dockerfile
407 Bytes
| FROM woleigedouer/catpawplay:latest | |
| ENV NODE_PATH=/data | |
| RUN mkdir -p /data | |
| EXPOSE 7860 | |
| # 启动应用并用 node 做端口转发 | |
| CMD sh -c "cd /app/dist && node runner.cjs & sleep 10 && node -e \"const n=require('net');n.createServer(c=>{const x=n.connect(9321,'127.0.0.1');c.pipe(x);x.pipe(c);x.on('error',()=>{});c.on('error',()=>{});}).listen(7860,'0.0.0.0',()=>console.log('Proxy 7860->9321 OK'));\"" |