23 lines
		
	
	
		
			524 B
		
	
	
	
		
			Docker
		
	
			
		
		
	
	
			23 lines
		
	
	
		
			524 B
		
	
	
	
		
			Docker
		
	
# Use an official Python runtime as a parent image
 | 
						|
FROM python:3.11-slim
 | 
						|
 | 
						|
# Set the working directory in the container
 | 
						|
WORKDIR /app
 | 
						|
 | 
						|
# Install dependencies
 | 
						|
COPY requirements.txt ./
 | 
						|
RUN pip install --no-cache-dir -r requirements.txt
 | 
						|
 | 
						|
# Copy the entire app into the container
 | 
						|
COPY . .
 | 
						|
 | 
						|
# Expose the Flask development server port
 | 
						|
EXPOSE 5000
 | 
						|
 | 
						|
# Set the Flask environment to development
 | 
						|
ENV FLASK_APP=app.py
 | 
						|
ENV FLASK_ENV=development
 | 
						|
 | 
						|
# Command to run the Flask application
 | 
						|
CMD ["flask", "run", "--host=0.0.0.0", "--port=5000"]
 |