From cfd064d3a2da8dde0dbac05e171f2caa85434113 Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Sat, 7 Sep 2024 15:30:34 -0400 Subject: [PATCH] fix: package install inside dockerfile (#615) --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ba35b459..0c41a244 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,8 @@ WORKDIR /app COPY LICENSE.txt . COPY pyproject.toml . COPY poetry.lock . + +# Install dependencies (minus package) to cache this layer RUN poetry config virtualenvs.create false && \ poetry --no-cache install --no-root --without dev @@ -30,7 +32,8 @@ RUN poetry config virtualenvs.create false && \ COPY canary canary COPY data data -RUN pip install -e . +# Install the package locally +RUN poetry install --without dev # Notes: # Users will have to configure their instance using environment variables, described by the Pydantic settings object