Thanks for the response, @Ram R
Using the Dockerfile :
FROM python:3.8-slim-buster
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
POETRY_VERSION=1.1.7 \
PYLINT_VERSION=2.9.4
RUN pip install pylint==$PYLINT_VERSION \
&& pip install "poetry==$POETRY_VERSION"
COPY pyproject.toml ./
RUN poetry config virtualenvs.create false