From 431c4bea2a378a900e1bec486a1330b20801568e Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 21 Aug 2023 18:52:18 +0200 Subject: [PATCH] Explicitly set arguments for final docker stage --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index b6c03eb..fdb7cf7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,6 @@ ENV \ RUN curl -sSL https://install.python-poetry.org | python3 - ENV PATH="${POETRY_HOME}/bin:${PATH}" - WORKDIR ${APP_PATH} COPY ./poetry.lock ./pyproject.toml ./README.md ./ COPY ./${APP_NAME} ./${APP_NAME} @@ -32,15 +31,15 @@ COPY ./${APP_NAME} ./${APP_NAME} # -------------- FROM staging as worker -ARG APP_NAME -ARG APP_PATH -ARG VERBANOTE_OUTPUT_PATH +ARG APP_NAME=verbanote +ARG APP_PATH=/verbanote +ARG VERBANOTE_OUTPUT_PATH=/transcriptions ENV APP_NAME=${APP_NAME} ENV APP_PATH=${APP_PATH} ENV VERBANOTE_OUTPUT_PATH=${VERBANOTE_OUTPUT_PATH} WORKDIR ${APP_PATH} -RUN poetry install +RUN poetry install RUN mkdir -p ${VERBANOTE_OUTPUT_PATH} # installing the large models