25 lines
		
	
	
		
			517 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			517 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
# Use PHP with Apache as the base image
 | 
						|
FROM python:3.9
 | 
						|
 | 
						|
ENV PYTHONUNBUFFERED=1
 | 
						|
 | 
						|
# Install Additional System Dependencies
 | 
						|
RUN apt-get update && apt-get upgrade -y
 | 
						|
RUN apt-get install -y \
 | 
						|
    libgl1 \
 | 
						|
    nano
 | 
						|
 | 
						|
# Clear cache
 | 
						|
RUN apt-get autoremove
 | 
						|
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
 | 
						|
 | 
						|
#Copy Project
 | 
						|
COPY . /app
 | 
						|
 | 
						|
# Install any needed dependencies specified in requirements.txt
 | 
						|
RUN pip install --no-cache-dir -r /app/requirements.txt
 | 
						|
 | 
						|
# Start Anonimization
 | 
						|
CMD ["python", "-u", "/app/app.py"]
 | 
						|
 | 
						|
WORKDIR /app |