kuttuxd / Dockerfile
JerryCoder's picture
Update Dockerfile
4820cbf verified
raw
history blame contribute delete
461 Bytes
# 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"]