File size: 410 Bytes
b3cc940
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Step 1: Choose a base image
FROM python:3.9

# Step 2: Set the working directory inside the container
WORKDIR /app

# Step 3: Copy the application files to the container
COPY . /app

# Step 4: Install the required dependencies
RUN pip install -r requirements.txt

# Step 5: Expose the necessary port
EXPOSE 5000

# Step 6: Define the entry point command
CMD ["flask", "run", "--host=0.0.0.0", "--port=5000"]