File size: 528 Bytes
07ab316
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d5f04e4
07ab316
d5f04e4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.11-slim

WORKDIR /app

# Install system deps and git (needed for pip git installs)
RUN apt-get update && apt-get install -y --no-install-recommends \
    gcc git \
    && rm -rf /var/lib/apt/lists/*

# Copy and install requirements (pulls query-classifier library from GitHub)
COPY web/requirements.txt /app/web/requirements.txt
RUN pip install --no-cache-dir -r web/requirements.txt

# Copy the web app
COPY web/ /app/web/

EXPOSE 7860

CMD ["sh", "-c", "uvicorn web.app:app --host 0.0.0.0 --port ${PORT:-7860}"]