Spaces:
Paused

File size: 1,152 Bytes
da7445d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
29
30
31
32
33
# ─── DQA-OpenEnv Dockerfile ───────────────────────────────────────────
# Builds the Data Quality Assurance OpenEnv environment.
# Hugging Face Spaces requires Dockerfile at REPO ROOT.
# HF Spaces requires port 7860.
# ──────────────────────────────────────────────────────────────────────

FROM python:3.12-slim

WORKDIR /app

RUN apt-get update && \
    apt-get install -y --no-install-recommends curl git && \
    rm -rf /var/lib/apt/lists/*

# Hugging Face writable filesystem environment variables
ENV HOME=/tmp
ENV HF_HOME=/tmp/huggingface
ENV PYTHONUNBUFFERED=1

# Copy requirements and install before copying source
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy source code
COPY . .

# Set Python path so all imports resolve from /app
ENV PYTHONPATH="/app:$PYTHONPATH"

EXPOSE 7860

CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]