FROM tsl0922/ttyd:latest RUN apk add --no-cache bash wget \ && wget -q https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 \ -O /usr/local/bin/cloudflared \ && chmod +x /usr/local/bin/cloudflared EXPOSE 7860 CMD sh -c "ttyd --port 7860 --writable bash & sleep 2 \ && cloudflared tunnel --url http://localhost:7860 2>&1"