fix docker build

add-tracing
Meng Zhang 2023-05-25 18:25:34 -07:00
parent 0acc975618
commit c937a5056a
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
name: Create and publish docker image
name: Create and publish docker image (rust)
on:
workflow_dispatch:

View File

@ -53,7 +53,7 @@ RUN mkdir -p /opt/tabby/bin
RUN cp target/release/tabby /opt/tabby/bin/
RUN mkdir -p /opt/tabby/lib
RUN cp $(dirname $(find target | grep lib/libctranslate2 | head -1))/libctranslate2*.so /opt/tabby/lib
RUN cp $(dirname $(find target | grep lib/libctranslate2 | head -1))/libctranslate2* /opt/tabby/lib
FROM nvidia/cuda:11.2.2-base-ubuntu20.04
@ -76,3 +76,4 @@ ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TABBY_ROOT/lib
COPY --from=builder $TABBY_ROOT $TABBY_ROOT
ENTRYPOINT ["/opt/tabby/bin/tabby"]