File size: 489 Bytes
dcfaf89
 
a4389d4
9075d48
dcfaf89
 
 
 
 
 
8fe83d8
dcfaf89
 
 
 
 
8fe83d8
 
ac7bb48
dcfaf89
 
 
99ef4f7
dcfaf89
99ef4f7
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
FROM python:3.11-slim

RUN mkdir /.cache

RUN pip install poetry==1.6.1

RUN poetry config virtualenvs.create false

WORKDIR /code

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

COPY ./packages ./packages

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

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

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