Skip to content

Commit

Permalink
Update location of Poetry to new defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
conatus authored Jan 4, 2024
1 parent f2c433f commit 5c8ff0f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,18 @@ RUN chown app:app /app
RUN mkdir -p /home/app
RUN chown app:app /home/app
USER app

# Install the project requirements and build.
RUN curl -sSL https://install.python-poetry.org/ | python -; \
echo "source $HOME/.poetry/env" >> "$HOME/.profile"; \
echo "source $HOME/.poetry/env" >> "$HOME/.bashrc"
echo "export PATH="/home/app/.local/bin:$PATH" >> "$HOME/.profile"; \
echo "export PATH="/home/app/.local/bin:$PATH" >> "$HOME/.bashrc"

COPY pyproject.toml poetry.lock .
RUN bash -c "source $HOME/.poetry/env; poetry install"
RUN bash -c "poetry install"

ENV PYTHONUNBUFFERED=1 \
DJANGO_SETTINGS_MODULE=banmarchive.settings.production \
PATH=/home/app/.poetry/bin:$PATH \
PATH=/home/app/.local/bin:$PATH \
PORT=80

COPY --chown=app:app . .
Expand Down

0 comments on commit 5c8ff0f

Please sign in to comment.