File size: 617 Bytes
2f49beb
 
 
 
 
 
4d77937
 
 
2f49beb
 
 
 
c285c68
2f49beb
 
 
 
d781f0e
 
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 from Docker Hub
FROM python:3.9

# Set the working directory in the container
WORKDIR /code

# Upgrade pip, setuptools, and wheel
RUN pip install --no-cache-dir --upgrade pip setuptools wheel

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

# Install the Python dependencies
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

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

# Define the command to start the Flask app using Gunicorn
CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"]