File size: 431 Bytes
5702465
d2b3fa9
 
 
 
 
5702465
 
 
d2b3fa9
5702465
 
d2b3fa9
5702465
d2b3fa9
 
5702465
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Use Python base image
FROM python:3.10-slim

# Set working directory
WORKDIR /app

# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy rest of the code
COPY . .

# Expose the port used by the Flask app
EXPOSE 7860

# Define environment variable for Flask
ENV FLASK_APP=app.py

# Start the Flask app
CMD ["flask", "run", "--host=0.0.0.0", "--port=7860"]