From fba054d7de031b9577ddd8f1c20a137385cffd9f Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 31 Oct 2022 09:30:26 +0100 Subject: [PATCH] Build wihout dev deps --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f88e416..26fadaf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,9 +22,10 @@ RUN python -m poetry_lock_check check-lock # Install python dependencies ############################################## RUN python -m venv --copies /app/venv +ARG POETRY_OPTIONS # Will install dev deps as well, so that we can run tests in this image RUN . /app/venv/bin/activate \ - && poetry install --no-interaction + && poetry install --no-interaction $POETRY_OPTIONS ENV PATH /app/venv/bin:$PATH