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 -
ENV PATH="${POETRY_HOME}/bin:${PATH}"
WORKDIR ${APP_PATH}
COPY ./poetry.lock ./pyproject.toml ./README.md ./
COPY ./${APP_NAME} ./${APP_NAME}
@ -32,9 +31,9 @@ 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}