Jarvis Bot commited on
Commit
ceb225e
·
1 Parent(s): cb8a063

Fix dufs download URL to use .tar.gz release asset

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -30,9 +30,12 @@ RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
30
  apt-get install -y nodejs && \
31
  npm install -g pnpm@8.3.1 pm2 ts-node
32
 
33
- # Install dufs (latest binary)
34
- RUN wget -qO /usr/local/bin/dufs https://github.com/sigoden/dufs/releases/latest/download/dufs-x86_64-unknown-linux-musl && \
35
- chmod +x /usr/local/bin/dufs
 
 
 
36
 
37
  # Install code-server
38
  RUN curl -fsSL https://code-server.dev/install.sh | sh -
 
30
  apt-get install -y nodejs && \
31
  npm install -g pnpm@8.3.1 pm2 ts-node
32
 
33
+ # Install dufs
34
+ RUN DUF_VER=$(curl -sL https://api.github.com/repos/sigoden/dufs/releases/latest | grep tag_name | cut -d'"' -f4) && \
35
+ wget -qO /tmp/dufs.tar.gz "https://github.com/sigoden/dufs/releases/download/${DUF_VER}/dufs-${DUF_VER}-x86_64-unknown-linux-musl.tar.gz" && \
36
+ tar xzf /tmp/dufs.tar.gz -C /usr/local/bin/ dufs && \
37
+ chmod +x /usr/local/bin/dufs && \
38
+ rm -f /tmp/dufs.tar.gz
39
 
40
  # Install code-server
41
  RUN curl -fsSL https://code-server.dev/install.sh | sh -