23 lines
		
	
	
		
			497 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			497 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| # Python Basis-Image
 | |
| FROM python:3.8
 | |
| 
 | |
| # Arbeitsverzeichnis innerhalb des Containers
 | |
| WORKDIR /app
 | |
| 
 | |
| # Anwendungsabhängigkeiten in das Container-Image kopieren
 | |
| COPY requirements.txt .
 | |
| 
 | |
| # Abhängigkeiten installieren
 | |
| RUN pip install --no-cache-dir -r requirements.txt
 | |
| 
 | |
| # Port der Flask-Anwendung
 | |
| EXPOSE 8085
 | |
| 
 | |
| # eigenen Code in das Container-Image kopieren
 | |
| COPY fib/*.py /app/
 | |
| COPY fib/static /app/static
 | |
| COPY fib/templates /app/templates
 | |
| 
 | |
| # Befehl, der die Anwendung startet
 | |
| CMD ["python", "app.py"]
 |