Skip to content

Commit

Permalink
Install poetry more defensively
Browse files Browse the repository at this point in the history
Avoid errors when building the Dockerfile by:

* Creating directories and files that 'poetry install' expects
* Adding poetry to the current $PATH
  • Loading branch information
snim2 committed Aug 22, 2024
1 parent a4d923a commit aba8284
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@ COPY ./app/pyproject.toml /usr/srv/app/pyproject.toml
COPY ./app/poetry.lock /usr/srv/app/poetry.lock
## self update disabled currently due to causing timeout issues in the deploy
#RUN $HOME/.local/bin/poetry self update 1.2.2 && \
RUN $HOME/.local/bin/poetry install

RUN mkdir -p $HOME/.poetry \
&& touch $HOME/.poetry/env \
&& $HOME/.local/bin/poetry install \
&& ln -s $HOME/.local/bin/poetry /usr/local/bin/poetry

VOLUME /usr/srv/app/media

Expand Down

0 comments on commit aba8284

Please sign in to comment.