From e17574e3a788fc390651b9c38ae76e3c4a3930cc Mon Sep 17 00:00:00 2001 From: Gerald Iakobinyi-Pich Date: Thu, 9 Jan 2025 12:38:31 +0200 Subject: [PATCH] fix: docker build, poetry export plugin needs to be installed explicitly --- api/aws_lambdas/submit_passport/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/aws_lambdas/submit_passport/Dockerfile b/api/aws_lambdas/submit_passport/Dockerfile index 078f6bb00..39deab5cb 100644 --- a/api/aws_lambdas/submit_passport/Dockerfile +++ b/api/aws_lambdas/submit_passport/Dockerfile @@ -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