File size: 400 Bytes
121333e
491f4f9
 
 
 
 
121333e
 
 
 
 
 
491f4f9
 
121333e
 
 
491f4f9
 
 
121333e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.10-slim

WORKDIR /app

COPY . /app

RUN apt-get update && apt-get install -y \
    build-essential \
    gcc \
    && rm -rf /var/lib/apt/lists/*

RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt

ENV PYTHONUNBUFFERED=1
ENV BACKEND_URL=http://127.0.0.1:8000

EXPOSE 7860
EXPOSE 8000

CMD sh -c "uvicorn main:app --host 0.0.0.0 --port 8000 & python ui.py"