File size: 843 Bytes
2520e52
 
2a06b5b
 
 
2520e52
 
 
 
 
2a06b5b
 
 
c40dd27
5fa3f76
229164f
2a06b5b
 
 
2520e52
 
 
2a06b5b
 
 
 
2520e52
2a06b5b
 
 
2520e52
2a06b5b
 
 
 
5fa3f76
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
34
35
36
FROM python:3.10-slim

# -----------------------------
# System dependencies
# -----------------------------
RUN apt-get update && apt-get install -y \
    build-essential \
    git \
    && rm -rf /var/lib/apt/lists/*

# -----------------------------
# Workdir
# -----------------------------
WORKDIR /app
ENV PYTHONPATH=/app

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

# -----------------------------
# Copy application
# -----------------------------
COPY . .

# -----------------------------
# Expose API
# -----------------------------
EXPOSE 8080

# -----------------------------
# Run API (inference only)
# -----------------------------
CMD ["uvicorn", "--app-dir", "/app", "main:app", "--host", "0.0.0.0", "--port", "8080"]