File size: 589 Bytes
0e5e243
0ebc4eb
 
0e5e243
0ebc4eb
 
 
 
 
 
 
 
f8dffab
 
 
 
0ebc4eb
0e5e243
 
0ebc4eb
 
0e5e243
0ebc4eb
 
0e5e243
0ebc4eb
 
0e5e243
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM python:3.9-slim

# Set working directory
WORKDIR /app

# Install build dependencies for blis
RUN apt-get update && apt-get install -y \
    build-essential \
    gcc \
    g++ \
    && rm -rf /var/lib/apt/lists/*

# Create writable directory
RUN mkdir -p /app/app_model && chmod -R 777 /app/app_model


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

# Copy application code
COPY . .

# Expose port (Hugging Face Spaces uses 7860 by default)
EXPOSE 7860

# Command to run the Flask app
CMD ["python", "main.py"]