27 lines
		
	
	
		
			621 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			621 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
FROM python:3.11-slim
 | 
						|
 | 
						|
WORKDIR /app
 | 
						|
ENV PYTHONDONTWRITEBYTECODE=1 \
 | 
						|
    PYTHONUNBUFFERED=1
 | 
						|
 | 
						|
# deps first
 | 
						|
COPY requirements.txt .
 | 
						|
RUN pip install --no-cache-dir -r requirements.txt
 | 
						|
 | 
						|
# app code
 | 
						|
COPY . /app
 | 
						|
 | 
						|
# runtime dirs + seed default config path (actual seeding done in entrypoint)
 | 
						|
RUN mkdir -p /config /data
 | 
						|
 | 
						|
# runtime env defaults (can be overridden by compose/env)
 | 
						|
ENV SHAI_CONFIG=/config/settings.conf \
 | 
						|
    SHAI_DATA=/data/data.json
 | 
						|
 | 
						|
# small, explicit entrypoint
 | 
						|
COPY docker-entrypoint.sh /usr/local/bin/entrypoint
 | 
						|
RUN chmod +x /usr/local/bin/entrypoint
 | 
						|
 | 
						|
ENTRYPOINT ["entrypoint"]
 | 
						|
CMD ["python","-u","/app/bot.py"]
 |