Skip to content

Commit

Permalink
Install status_function package after COPY
Browse files Browse the repository at this point in the history
  • Loading branch information
Iain-S committed Oct 11, 2023
1 parent b10d907 commit e608f9c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions status_function/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e608f9c

Please sign in to comment.