File size: 524 Bytes
a2c0b81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3919086
a2c0b81
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Start with an official Python base image
FROM python:3.10-slim

# Set the working directory inside the container
WORKDIR /app

# Copy your project's requirements file
COPY requirements.txt .

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

# Copy the rest of your application's code
COPY . .

# Expose the port your app will run on (e.g., if it's an API)
EXPOSE 7860

# Define the command to run your application
# This assumes your main script is named "app.py"
CMD ["python", "app.py"]