File size: 725 Bytes
378ac57 16f0bfc 378ac57 16f0bfc 4857aa6 16f0bfc 378ac57 7cd4564 7f30421 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
FROM debian:bullseye-slim
RUN apt-get update && apt-get install -y curl
RUN version=$(basename $(curl -sL -o /dev/null -w %{url_effective} https://github.com/gngpp/ninja/releases/latest)) \
&& base_url="https://github.com/gngpp/ninja/releases/expanded_assets/$version" \
&& latest_url=https://github.com/$(curl -sL $base_url | grep -oP 'href=".*x86_64.*musl\.tar\.gz(?=")' | sed 's/href="//') \
&& curl -Lo ninja.tar.gz $latest_url \
&& tar -xzf ninja.tar.gz
ENV LANG=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive LANGUAGE=en_US.UTF-8 LC_ALL=C
RUN cp ninja /bin/ninja
RUN mkdir /.ninja && chmod 777 /.ninja
CMD ["/bin/ninja", "run", "--enable-webui", "--arkose-endpoint", "https://librechat-ninja.hf.space"] |