File size: 528 Bytes
4e1967e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f18c709
4e1967e
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Use the official Python image as the base image
FROM python:3.9

# Set the working directory inside the container
WORKDIR /code

# Copy the requirements file into the container at /code
COPY ./requirements.txt /code/requirements.txt

# Install the required Python packages
RUN pip install --no-cache-dir --upgrade -r requirements.txt

# Copy the entire current directory into the container at /code
COPY . .

# Expose port 5000 to the outside world
EXPOSE 7860

# Command to run the Flask applicationW
CMD ["python", "app.py"]