22 lines
		
	
	
		
			405 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			405 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM python:3.10-slim
 | 
						|
 | 
						|
# Set working directory
 | 
						|
WORKDIR /app
 | 
						|
 | 
						|
# Set environment variables
 | 
						|
ENV PYTHONDONTWRITEBYTECODE=1 \
 | 
						|
    PYTHONUNBUFFERED=1 \
 | 
						|
    PYTHONFAULTHANDLER=1
 | 
						|
 | 
						|
# Install dependencies
 | 
						|
COPY requirements.txt .
 | 
						|
RUN pip install --no-cache-dir -r requirements.txt
 | 
						|
 | 
						|
# Copy application code
 | 
						|
COPY . .
 | 
						|
 | 
						|
# Create logs directory
 | 
						|
RUN mkdir -p logs && chmod 777 logs
 | 
						|
 | 
						|
# Run the bot
 | 
						|
CMD ["python", "main.py"] |