Skip to content

Commit 31088da

Browse files
Fix sonar issues
1 parent 9797522 commit 31088da

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

examples/build_recipes/poetry/Dockerfile.poetry

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@ FROM public.ecr.aws/lambda/python:3.13-x86_64
55
# Set workdir file
66
WORKDIR /tmp/app
77

8-
# Install poetry
9-
RUN pip install poetry
10-
118
# Copy poetry files
129
COPY pyproject.toml poetry.lock ./
1310

14-
# Configure poetry
15-
RUN poetry config virtualenvs.create false
16-
17-
# Install dependencies
18-
RUN poetry install --only=main --no-root
11+
# Configure poetry and install dependencies
12+
RUN poetry config virtualenvs.create false \
13+
pip install poetry \
14+
poetry install --only=main --no-root
1915

2016
# Copy application code
2117
COPY app_poetry.py ./

0 commit comments

Comments
 (0)