Posts

Showing posts with the label poetry

Poetry docker

# Stage 1: Build Environment FROM python : 3.12-slim AS python-base LABEL version= "1.0" LABEL description= "Poetry module application with Poetry" # python ENV PYTHONUNBUFFERED = 1 \     # prevents python creating .pyc files     PYTHONDONTWRITEBYTECODE = 1 \     \     # pip     PIP_NO_CACHE_DIR = off \     PIP_DISABLE_PIP_VERSION_CHECK = on \     PIP_DEFAULT_TIMEOUT = 100 \     \     # poetry     # https://python-poetry.org/docs/configuration/#using-environment-variables     POETRY_VERSION = 2.1.2 \     # make poetry install to this location     POETRY_HOME = "/opt/poetry" \     # make poetry create the virtual environment in the project's root     # it gets named `.venv`     POETRY_VIRTUALENVS_IN_PROJECT = true \     # do not ask any interactive question     POETRY_NO_INTERACTION = 1 \ ...