build: fix dockerfile

This commit is contained in:
hanchchch 2023-03-23 08:53:25 +00:00
parent 3ec0cc786c
commit cca84704ff
3 changed files with 5 additions and 2 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
.env
__pycache__
.venv

View File

@ -15,6 +15,7 @@ ENV PATH "/root/.local/bin:$PATH"
COPY pyproject.toml . COPY pyproject.toml .
COPY poetry.lock . COPY poetry.lock .
COPY api api
RUN poetry env use 3.10 RUN poetry env use 3.10
RUN poetry install --with tools RUN poetry install --with tools

View File

@ -3,8 +3,7 @@ name = "eval"
version = "0.1.0" version = "0.1.0"
description = "" description = ""
authors = ["Taeho Lee <taeho@corca.ai>", "Chung Hwan Han <hanch@corca.ai>"] authors = ["Taeho Lee <taeho@corca.ai>", "Chung Hwan Han <hanch@corca.ai>"]
readme = "README.md" packages = [{include = "api"}]
packages = [{include = "api"},{include = "core"}]
[tool.poetry.scripts] [tool.poetry.scripts]
serve = "api.main:serve" serve = "api.main:serve"