Skip to content

Commit 0dff83c

Browse files
committed
Update Dockerfile to set environment variables for Poetry installation
1 parent ba7d55b commit 0dff83c

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/quality-checks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
env:
1010
SHARED_PATH: ${{ github.workspace }}/lambdas/shared
1111
LAMBDA_PATH: ${{ github.workspace }}/lambdas
12+
POETRY_INSTALLER_ONLY_BINARY: ":all:"
1213

1314
jobs:
1415
lint-specification:

lambdas/mock_pds/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
FROM public.ecr.aws/lambda/python:3.11 AS base
22

3+
ENV PIP_ONLY_BINARY=:all: \
4+
POETRY_INSTALLER_ONLY_BINARY=:all:
5+
36
RUN mkdir -p /home/appuser && \
47
echo 'appuser:x:1001:1001::/home/appuser:/sbin/nologin' >> /etc/passwd && \
58
echo 'appuser:x:1001:' >> /etc/group && \
6-
chown -R 1001:1001 /home/appuser && pip install "poetry~=2.1.4"
9+
chown -R 1001:1001 /home/appuser && pip install --only-binary :all: "poetry==2.1.4"
710

811
COPY ./mock_pds/poetry.lock ./mock_pds/pyproject.toml ./
912

0 commit comments

Comments
 (0)