diff --git a/scenarios/Dockerfile b/scenarios/Dockerfile index e08aee4d2b..a4365a03a4 100644 --- a/scenarios/Dockerfile +++ b/scenarios/Dockerfile @@ -1,9 +1,12 @@ FROM python:3.10 +RUN addgroup -system nonroot \ + && adduser -system nonroot -ingroup nonroot WORKDIR /usr/src/app/ ENV POETRY_VERSION=1.8.3 ENV POETRY_HOME=/opt/poetry -RUN curl -sSL https://install.python-poetry.org | python - +RUN curl --proto "=https" --tlsv1.2 -sSf -L https://install.python-poetry.org | python - + ENV PATH="/opt/poetry/bin:$PATH" RUN poetry config virtualenvs.in-project true