File size: 538 Bytes
a617acd
 
 
 
9ff0fa2
a617acd
 
 
9ff0fa2
a617acd
 
 
 
 
9ff0fa2
a617acd
9ff0fa2
a617acd
 
9ff0fa2
 
a617acd
9ff0fa2
 
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
FROM python:3.11-slim

WORKDIR /app

# Install dependencies
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

# Copy source code
COPY src ./src
COPY configs ./configs
COPY openenv.yaml ./openenv.yaml
COPY inference.py ./inference.py
COPY scripts ./scripts
COPY app.py ./app.py

# Create data directory (fallback synthetic data used if empty)
RUN mkdir -p data

# HuggingFace Spaces expects port 7860
EXPOSE 7860

# app.py starts FastAPI internally on 8000, then launches Gradio on 7860
CMD ["python", "app.py"]