Yvan-W commited on
Commit
807bc14
·
verified ·
1 Parent(s): 13ed815

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -2,7 +2,10 @@ FROM node:22
2
 
3
  WORKDIR /RUN
4
 
5
- RUN npm install tgfs && \
6
- wget https://m.yvan.eu.org/d/%E7%A7%81%E4%BA%BA/%E5%85%B6%E4%BB%96%E6%96%87%E4%BB%B6/HuggingFace_Secret/TGWebdav/config.yaml
7
 
8
- CMD tgfs -w
 
 
 
 
2
 
3
  WORKDIR /RUN
4
 
5
+ RUN npm install pnpm -g && \
6
+ pnpm install tgfs
7
 
8
+ RUN --mount=type=secret,id=CONFIG,mode=0444,required=true \
9
+ wget $(cat /run/secrets/CONFIG)
10
+
11
+ CMD ./node_modules/.pnpm/tgfs@1.0.20/node_modules/tgfs/node_modules/.bin/tgfs --webdav