Spaces:
Running
Running
Update Dockerfile
Browse files18 unmodified lines192021222318 unmodified lines# Copy all your local files (including bot.py, setup.py, accounts.json, etc.)COPY --chown=user . $HOME/app# Automate the script inputs ("2" for No Proxy, "n" for No Rotation)CMD ["sh", "-c", "echo '2\nn' | python bot.py"]18 unmodified lines192021222324252627282918 unmodified lines# Copy all your local files (including bot.py, setup.py, accounts.json, etc.)COPY --chown=user . $HOME/app# (Keep all your previous lines up to the COPY layer...)# Expose the default port Hugging Face looks forEXPOSE 7860# Run a simple Python web server on port 7860 in the background, then kick off your botCMD ["sh", "-c", "python3 -m http.server 7860 & echo '2\nn' | python bot.py"]
Dockerfile+8-2