Explicitly set arguments for final docker stage
This commit is contained in:
parent
2b8033dfb2
commit
431c4bea2a
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue