File size: 472 Bytes
acbe15f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23b1a1c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Use an official Python runtime as base image
FROM python:3.10-slim

# Set the working directory
WORKDIR /app

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

# Copy the app files
COPY . .

# Expose the port Flask runs on
EXPOSE 7860

# Set environment variable for Hugging Face API Key (to be set in Spaces)
ENV HUGGINGFACEHUB_API_TOKEN=""

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