12 lines
		
	
	
		
			401 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			401 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM python:3.13-slim
 | 
						|
 | 
						|
#ENV PYTHONPATH=/usr/lib/python3/dist-packages
 | 
						|
RUN python3 -m venv venv
 | 
						|
COPY requirements.txt ./
 | 
						|
RUN ./venv/bin/pip install --no-cache-dir -r requirements.txt
 | 
						|
#RUN pip3 install -r requirements.txt
 | 
						|
COPY *.py *.txt *.toml ./
 | 
						|
COPY inventory ./inventory
 | 
						|
#ENV PYTHONPATH=/inventory
 | 
						|
CMD ["./venv/bin/python3", "-m", "rio", "run", "--release", "--public", "--port", "8000"]
 | 
						|
EXPOSE 8000 |