11FROM python:3.12-slim
22
33# Set environment variables for Poetry
4- ENV POETRY_VERSION=1.8.4
4+ ENV POETRY_VERSION=2.2.1
55ENV POETRY_HOME=/opt/poetry
66ENV POETRY_NO_INTERACTION=1
77ENV POETRY_VIRTUALENVS_IN_PROJECT=1
@@ -13,8 +13,8 @@ ENV PATH="${VIRTUAL_ENV}/bin:$PATH"
1313
1414# Install Poetry and dependencies
1515RUN apt-get update && apt-get install -y curl && \
16- curl -sSL https://install.python-poetry.org | python3 - && \
17- ln -s ${POETRY_HOME}/bin/poetry /usr/local/bin/poetry
16+ curl -sSL https://install.python-poetry.org | python3 - && \
17+ ln -s ${POETRY_HOME}/bin/poetry /usr/local/bin/poetry
1818
1919# Set the working directory
2020WORKDIR /app
@@ -28,11 +28,11 @@ RUN poetry install --with dev --no-interaction # --no-root
2828
2929# Enable bash-completion and set bash as the default shell
3030RUN echo "alias ll='ls -la'" >> ~/.bashrc && \
31- echo "alias poetry='poetry run'" >> ~/.bashrc
31+ echo "alias poetry='poetry run'" >> ~/.bashrc
3232# # Run tests and verify the package build
3333# RUN poetry run pytest && \
34- # poetry build && \
35- # pip install dist/*.whl
34+ # poetry build && \
35+ # pip install dist/*.whl
3636
3737# Configure the shell to automatically activate the venv
3838RUN echo "source ${VIRTUAL_ENV}/bin/activate" >> ~/.bashrc
0 commit comments