From e608f9c830930a6c8cfbc31ade06198da4ca60fe Mon Sep 17 00:00:00 2001 From: Iain-S <25081046+Iain-S@users.noreply.github.com> Date: Wed, 11 Oct 2023 17:26:16 +0100 Subject: [PATCH] Install status_function package after COPY --- status_function/Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/status_function/Dockerfile b/status_function/Dockerfile index 40dba1a..382315e 100644 --- a/status_function/Dockerfile +++ b/status_function/Dockerfile @@ -6,10 +6,13 @@ ENV AzureWebJobsScriptRoot=/home/site/wwwroot \ RUN curl -sSL https://install.python-poetry.org | python3 - RUN ~/.local/share/pypoetry/venv/bin/poetry config virtualenvs.create false -COPY pyproject.toml poetry.lock ./ - -RUN ~/.local/share/pypoetry/venv/bin/poetry install --only main RUN mkdir -p /home/site/wwwroot/status COPY status/*.py /home/site/wwwroot/status/ COPY status/function.json /home/site/wwwroot/status/ + +WORKDIR /home/site/wwwroot + +COPY pyproject.toml poetry.lock ./ + +RUN ~/.local/share/pypoetry/venv/bin/poetry install --only main