9router / Dockerfile
underrate's picture
Initial commit
218ad08 verified
raw
history blame contribute delete
476 Bytes
FROM node:20-slim
# Port mapping ke liye hum 'socat' tool install kar rahe hain
RUN apt-get update && apt-get install -y socat && rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN chmod 777 /app
ENV HOME=/app
# 9router ko globally install karna
RUN npm install -g 9router
EXPOSE 7860
# 1. Auto 'Enter' press karne aur
# 2. Port 20128 ko 7860 par forward karne ka setup
CMD bash -c "{ echo ''; cat; } | 9router & socat TCP-LISTEN:7860,fork TCP:127.0.0.1:20128"