File size: 416 Bytes
169c339
a0d84aa
169c339
a0d84aa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3650674
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.11.6-slim

RUN pip install --upgrade pip
RUN pip install poetry==1.6.1

RUN poetry config virtualenvs.create false

WORKDIR /code

COPY ./pyproject.toml ./README.md ./poetry.lock* ./

RUN poetry install  --no-interaction --no-ansi --no-root

COPY ./app ./app

RUN poetry install --no-interaction --no-ansi

EXPOSE 7860

CMD exec uvicorn app.server:app --host 0.0.0.0 --port 7860 --root-path $PROXY_URL