File size: 442 Bytes
88a3939
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Use the official Python base image with version 3.10
FROM python:3.10

# Set the working directory inside the container
WORKDIR /app

# Copy the requirements.txt file to the container
COPY requirements.txt .

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

# Copy all files to the container
COPY . .
# Expose port 7860
EXPOSE 7860

# Set the entrypoint command to run main.py
CMD ["python", "main.py"]