From cca84704ff3da06e1d68f7cc3f1682ec9a058105 Mon Sep 17 00:00:00 2001 From: hanchchch Date: Thu, 23 Mar 2023 08:53:25 +0000 Subject: [PATCH] build: fix dockerfile --- .dockerignore | 3 +++ Dockerfile | 1 + pyproject.toml | 3 +-- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..5152f84 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.env +__pycache__ +.venv diff --git a/Dockerfile b/Dockerfile index f9374ad..18f643b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,7 @@ ENV PATH "/root/.local/bin:$PATH" COPY pyproject.toml . COPY poetry.lock . +COPY api api RUN poetry env use 3.10 RUN poetry install --with tools diff --git a/pyproject.toml b/pyproject.toml index 6096f47..501b37c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,8 +3,7 @@ name = "eval" version = "0.1.0" description = "" authors = ["Taeho Lee ", "Chung Hwan Han "] -readme = "README.md" -packages = [{include = "api"},{include = "core"}] +packages = [{include = "api"}] [tool.poetry.scripts] serve = "api.main:serve"