File size: 581 Bytes
1804a7a
2e91995
1804a7a
2e91995
1804a7a
2e91995
 
1804a7a
 
 
 
 
2e91995
 
 
1804a7a
2e91995
 
1804a7a
2e91995
 
1804a7a
2e91995
 
1804a7a
2e91995
 
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.10-slim

# Install System Dependencies (PDF & Media)
RUN apt-get update && apt-get install -y \
    poppler-utils \
    ffmpeg \
    git \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Install Python Deps
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy Code
COPY . .

# Create Directories for Data
RUN mkdir -p src/data/docs src/data/blueprints my_workflows

# Set Permissions
RUN chmod -R 777 src/data my_workflows

# Launch Server (HF Spaces use port 7860)
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]