Spaces:
Sleeping
Sleeping
File size: 461 Bytes
3477d80 4820cbf 3477d80 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Use official Python image
FROM python:3.11-slim
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Set work directory
WORKDIR /app
# Copy project files
COPY bot.py requirements.txt ./
# Install dependencies
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
# Expose port (Hugging Face expects 7860 for Gradio/Streamlit, not needed for bot but safe)
EXPOSE 7860
# Run the bot
CMD ["python", "bot.py"]
|