build: add POETRY_INSTALL_ARGS build argument to Dockerfile (#3149)

This commit is contained in:
Se7enZ
2025-05-11 04:47:45 +02:00
committed by GitHub
parent 8458b4d84b
commit bd19d78834
2 changed files with 12 additions and 4 deletions
+4 -2
View File
@@ -19,7 +19,8 @@ ENV POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_CREATE=1 \
POETRY_CACHE_DIR=/tmp/poetry_cache
RUN poetry install --only main
ARG POETRY_INSTALL_ARGS="--only main"
RUN poetry install ${POETRY_INSTALL_ARGS}
FROM python:3.12-slim-bookworm
@@ -46,7 +47,8 @@ WORKDIR /app
COPY . .
COPY --from=builder /app/.venv .venv
RUN poetry install --only main
ARG POETRY_INSTALL_ARGS="--only main"
RUN poetry install ${POETRY_INSTALL_ARGS}
ENV LNBITS_PORT="5000"
ENV LNBITS_HOST="0.0.0.0"