build: use poetry

This commit is contained in:
hanchchch 2023-03-18 17:41:31 +09:00
parent a7dcd4f6d4
commit efeee4f3e8
4 changed files with 2364 additions and 19 deletions

View File

@ -3,12 +3,16 @@ WORKDIR /app/
RUN \
apt-get update && \
apt-get install -y python3 python3-pip
apt-get install -y python3.10 python3-pip curl && \
curl -sSL https://install.python-poetry.org | python3 -
RUN apt-get install uvicorn -y
RUN pip install --upgrade pip
COPY requirements.txt .
RUN pip install -r requirements.txt
ENV PATH "/root/.local/bin:$PATH"
COPY pyproject.toml .
COPY poetry.lock .
RUN poetry install
COPY . .

2324
poetry.lock generated Normal file

File diff suppressed because it is too large Load Diff

32
pyproject.toml Normal file
View File

@ -0,0 +1,32 @@
[tool.poetry]
name = "awesomegpt"
version = "0.1.0"
description = ""
authors = ["Taeho Lee <taeho@corca.ai>", "Chung Hwan Han <hanch@corca.ai>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
fastapi = "^0.94.1"
langchain = "^0.0.115"
diffusers = "^0.14.0"
transformers = "^4.27.1"
pydantic = "^1.10.6"
tenacity = "^8.2.2"
llama-index = "^0.4.29"
python-dotenv = "^1.0.0"
torch = "^2.0.0"
pillow = "^9.4.0"
[tool.poetry.group.tools]
optional = true
[tool.poetry.group.tools.dependencies]
psycopg2-binary = "^2.9.5"
wikipedia = "^1.4.0"
google-search-results = "^2.4.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

View File

@ -1,15 +0,0 @@
pandas
Pillow
pydantic
tenacity
langchain
fastapi
boto3
llama_index
torch
transformers
diffusers
python_dotenv
google-search-results
psycopg2-binary
wikipedia