File size: 423 Bytes
2eb9274
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Use a base image with Python pre-installed
FROM python:3.8-slim

# Set the working directory
WORKDIR /app

# Copy the application code into the container
COPY . /app

# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Expose the port that the app will run on
EXPOSE 8080

# Start the Flask app using gunicorn (production-ready)
CMD ["gunicorn", "-b", "0.0.0.0:8080", "app:app"]