Only run light-the-torch when installed in env

This commit is contained in:
Marty Oehme 2023-08-21 18:51:23 +02:00
parent 44e8021378
commit 5b463a6f79
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -24,8 +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}"
# installing the large models
RUN ltt install torch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1
WORKDIR ${APP_PATH} WORKDIR ${APP_PATH}
COPY ./poetry.lock ./pyproject.toml ./ COPY ./poetry.lock ./pyproject.toml ./
@ -45,6 +43,9 @@ 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
RUN poetry run ltt install torch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1
COPY ./docker/docker-entrypoint.sh /docker-entrypoint.sh COPY ./docker/docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT [ "/docker-entrypoint.sh" ] ENTRYPOINT [ "/docker-entrypoint.sh" ]