Spaces:
Running
Running
File size: 407 Bytes
5a187fe | 1 2 3 4 5 6 7 8 9 | 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(2333,'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->2333 OK'));\"" |