diff --git a/Dockerfile b/Dockerfile index 2058e93..0a7ac11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -FROM python:3.11.4-slim-buster +FROM python:3.11-slim LABEL org.opencontainers.image.description "Docker (base) image with Python 3.x with poetry" -ARG POETRY_VERSION=1.2.0 +ARG POETRY_VERSION=1.7.0 ARG POETRY_HOME=/opt/poetry # making this explicit @@ -15,11 +15,13 @@ RUN apt update -y \ --no-install-recommends -y \ build-essential \ jq \ + git \ && POETRY_VERSION=${POETRY_VERSION} python3 /tmp/install-poetry \ && rm /tmp/install-poetry \ - && ln -s ${POETRY_HOME}/bin/poetry /usr/local/bin/poetry \ && mkdir -p /workspace +ENV PATH="$POETRY_HOME/bin:$PATH" WORKDIR /workspace -ENTRYPOINT ["/usr/local/bin/poetry"] + +ENTRYPOINT ["poetry"]