sunnychao commited on
Commit
710e923
·
verified ·
1 Parent(s): 380e622

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -9
Dockerfile CHANGED
@@ -1,16 +1,16 @@
1
- FROM debian:bullseye-slim
2
- RUN apt-get update && apt-get install -y curl
3
 
4
- RUN version=$(basename $(curl -sL -o /dev/null -w %{url_effective} https://github.com/gngpp/ninja/releases/latest)) \
5
- && base_url="https://github.com/gngpp/ninja/releases/expanded_assets/$version" \
6
- && latest_url=https://github.com/$(curl -sL $base_url | grep -oP 'href=".*x86_64.*musl\.tar\.gz(?=")' | sed 's/href="//') \
7
- && curl -Lo ninja.tar.gz $latest_url \
8
- && tar -xzf ninja.tar.gz
9
 
10
 
11
  ENV LANG=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive LANGUAGE=en_US.UTF-8 LC_ALL=C
12
 
13
- RUN cp ninja /bin/ninja
14
  RUN mkdir /.ninja && chmod 777 /.ninja
15
 
16
- CMD ["/bin/ninja", "run", "--enable-webui", "--arkose-endpoint", "https://niansuh-ninja.hf.space"]
 
1
+ FROM sunchaowang/ninja:latest
2
+ # RUN apt-get update && apt-get install -y curl
3
 
4
+ # RUN version=$(basename $(curl -sL -o /dev/null -w %{url_effective} https://github.com/gngpp/ninja/releases/latest)) \
5
+ # && base_url="https://github.com/gngpp/ninja/releases/expanded_assets/$version" \
6
+ # && latest_url=https://github.com/$(curl -sL $base_url | grep -oP 'href=".*x86_64.*musl\.tar\.gz(?=")' | sed 's/href="//') \
7
+ # && curl -Lo ninja.tar.gz $latest_url \
8
+ # && tar -xzf ninja.tar.gz
9
 
10
 
11
  ENV LANG=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive LANGUAGE=en_US.UTF-8 LC_ALL=C
12
 
13
+ # RUN cp ninja /bin/ninja
14
  RUN mkdir /.ninja && chmod 777 /.ninja
15
 
16
+ CMD ["/bin/ninja", "run", "--enable-webui", "--arkose-endpoint", "https://sunnychao-ninja-2.hf.space"]