Explicitly set arguments for final docker stage

This commit is contained in:
Marty Oehme 2023-08-21 18:52:18 +02:00
parent 2b8033dfb2
commit 431c4bea2a
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -24,7 +24,6 @@ ENV \
RUN curl -sSL https://install.python-poetry.org | python3 - RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH="${POETRY_HOME}/bin:${PATH}" ENV PATH="${POETRY_HOME}/bin:${PATH}"
WORKDIR ${APP_PATH} WORKDIR ${APP_PATH}
COPY ./poetry.lock ./pyproject.toml ./README.md ./ COPY ./poetry.lock ./pyproject.toml ./README.md ./
COPY ./${APP_NAME} ./${APP_NAME} COPY ./${APP_NAME} ./${APP_NAME}
@ -32,15 +31,15 @@ COPY ./${APP_NAME} ./${APP_NAME}
# -------------- # --------------
FROM staging as worker FROM staging as worker
ARG APP_NAME ARG APP_NAME=verbanote
ARG APP_PATH ARG APP_PATH=/verbanote
ARG VERBANOTE_OUTPUT_PATH ARG VERBANOTE_OUTPUT_PATH=/transcriptions
ENV APP_NAME=${APP_NAME} ENV APP_NAME=${APP_NAME}
ENV APP_PATH=${APP_PATH} ENV APP_PATH=${APP_PATH}
ENV VERBANOTE_OUTPUT_PATH=${VERBANOTE_OUTPUT_PATH} ENV VERBANOTE_OUTPUT_PATH=${VERBANOTE_OUTPUT_PATH}
WORKDIR ${APP_PATH} WORKDIR ${APP_PATH}
RUN poetry install RUN poetry install
RUN mkdir -p ${VERBANOTE_OUTPUT_PATH} RUN mkdir -p ${VERBANOTE_OUTPUT_PATH}
# installing the large models # installing the large models