mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 12:24:53 +00:00
docker image: text-generation-launcher wrapper as entrypoint
run ldconfig before launching tgi Signed-off-by: Raphael Glon <oOraph@users.noreply.github.com>
This commit is contained in:
parent
b65beb43d3
commit
204d2d8a2f
@ -250,5 +250,7 @@ ENTRYPOINT ["./entrypoint.sh"]
|
||||
# Final image
|
||||
FROM base
|
||||
|
||||
ENTRYPOINT ["text-generation-launcher"]
|
||||
COPY ./tgi-entrypoint.sh /tgi-entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/tgi-entrypoint.sh"]
|
||||
CMD ["--json-output"]
|
||||
|
5
tgi-entrypoint.sh
Executable file
5
tgi-entrypoint.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
ldconfig 2>/dev/null || echo 'unable to refresh ld cache, not a big deal in most cases'
|
||||
|
||||
text-generation-launcher $@
|
Loading…
Reference in New Issue
Block a user