File size: 349 Bytes
140d037
 
7144a80
140d037
 
7144a80
140d037
7144a80
 
e12452b
 
 
140d037
 
7144a80
140d037
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Use Python as the base image
FROM python:3.9-slim

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

# Set the working directory to /app
WORKDIR /app

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

# Expose port 5000 for the Flask app
EXPOSE 5000

# Run the app using Python
CMD ["python", "app.py"]