J'avais oublié de push...
This commit is contained in:
		
							
								
								
									
										18
									
								
								TP5/Exercice-4.2/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								TP5/Exercice-4.2/Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
FROM ubuntu:22.04
 | 
			
		||||
 | 
			
		||||
RUN apt-get update && \
 | 
			
		||||
    apt-get upgrade -y && \
 | 
			
		||||
    apt-get install -y python3 python3-pip && \
 | 
			
		||||
    apt-get clean && \
 | 
			
		||||
    rm -rf /var/lib/apt/lists/*
 | 
			
		||||
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
 | 
			
		||||
COPY requirements.txt .
 | 
			
		||||
RUN pip3 install --no-cache-dir -r requirements.txt
 | 
			
		||||
 | 
			
		||||
COPY app.py .
 | 
			
		||||
 | 
			
		||||
USER nobody
 | 
			
		||||
EXPOSE 5000
 | 
			
		||||
CMD ["python3", "app.py"]
 | 
			
		||||
		Reference in New Issue
	
	Block a user