Only run light-the-torch when installed in env
This commit is contained in:
parent
44e8021378
commit
5b463a6f79
1 changed files with 3 additions and 2 deletions
|
@ -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" ]
|
||||||
|
|
Loading…
Reference in a new issue