Spaces:
Sleeping

File size: 509 Bytes
0939b04
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ea3bc7f
0939b04
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.11-slim

WORKDIR /app

# ์‹œ์Šคํ…œ ์˜์กด์„ฑ
RUN apt-get update && apt-get install -y --no-install-recommends \
    gcc g++ libgdal-dev libgeos-dev libproj-dev \
    && rm -rf /var/lib/apt/lists/*

# Python ์˜์กด์„ฑ
COPY api/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# ์•ฑ ์ฝ”๋“œ
COPY api/ ./api/

# HF Space: limit tiles for CPU inference speed
ENV MAX_BASE_TILES=4
ENV PORT=7860
EXPOSE 7860

CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "7860"]