Spaces:
Running
Running
Delete Dockerfile
Browse files123456789101112131415161718192021222324252627282930FROM python:3.10-slim
# Set environment paths and optimize terminal logging streamsENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 \ HOME=/home/user \ PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
# Set up the secure low-privilege user required by Hugging FaceRUN useradd -m -u 1000 userUSER user
# Copy requirements file from your Termux environment to the containerCOPY --chown=user requirements.txt $HOME/app/requirements.txtRUN pip install --no-cache-dir --upgrade -r requirements.txt
# 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 python3 -m http.server 7860 & echo '2\nn' | python bot.py
DockerfileDeleted-30