build(docker): update docker build

This commit is contained in:
2026-04-14 01:38:11 +03:00
parent ad8144df37
commit 6112147b40
6 changed files with 85 additions and 6 deletions

View File

@@ -3,9 +3,9 @@ ENV POETRY_HOME="/opt/poetry"
ENV PATH="$POETRY_HOME/bin:$PATH"
WORKDIR /app
RUN curl -sSL https://install.python-poetry.org | python3 -
COPY pyproject.toml poetry.lock ./
COPY pyproject.toml poetry.lock README.md ./
RUN poetry config virtualenvs.in-project true
RUN poetry install --with app
RUN poetry install --with app --no-root
FROM python:3.12-slim
ENV PATH="/app/.venv/bin:$PATH"