File size: 437 Bytes
73f9d3e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Use official Python runtime as a parent image
FROM python:3.11-slim

# Set working directory
WORKDIR /app

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

# Copy the app code
COPY app.py .

# Expose the port HF Spaces expects
EXPOSE 7860

# Set environment variable for Flask to run on the correct port
ENV PORT=7860

# Run the Flask app
CMD ["python", "app.py"]