Ref / Dockerfile
VLADIMIROFF777's picture
Create Dockerfile
85b85bf verified
raw
history blame contribute delete
396 Bytes
FROM python:3.10-slim
WORKDIR /app
# Upgrade pip
RUN pip install --no-cache-dir --upgrade pip
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy bot script
COPY bot.py .
# Create a writable directory for sessions (optional, but good practice)
RUN mkdir sessions
RUN chmod 777 sessions
# Command to run
CMD ["python", "bot.py"]