Spaces:
Running
Running
Jarvis Bot commited on
Commit ·
ceb225e
1
Parent(s): cb8a063
Fix dufs download URL to use .tar.gz release asset
Browse files- 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
|
| 34 |
-
RUN
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
| 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 -
|