Skip to content

Commit

Permalink
fix: docker build, poetry export plugin needs to be installed explici…
Browse files Browse the repository at this point in the history
…tly (#765)
  • Loading branch information
nutrina authored Jan 9, 2025
1 parent a9cf069 commit 33905c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/aws_lambdas/submit_passport/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ FROM --platform=linux/amd64 public.ecr.aws/lambda/python:3.12 AS base
#########################################################
FROM base AS builder

# Installing the poetry export plugin as per instructions here: https://github.com/python-poetry/poetry-plugin-export?tab=readme-ov-file#installation
# - Note: using `pipx inject poetry poetry-plugin-export` did not work in this case for unknown reasons
RUN pip install --upgrade pip && \
pip install --user pipx && \
/root/.local/bin/pipx ensurepath && \
/root/.local/bin/pipx install poetry
/root/.local/bin/pipx install poetry && \
/root/.local/bin/poetry self add poetry-plugin-export

# Tell pipenv to create venv in the current directory
ENV POETRY_VIRTUALENVS_IN_PROJECT=1
Expand Down

0 comments on commit 33905c8

Please sign in to comment.