Download Dockerfile from Yvan-W/TGWD: direct link, hf CLI and curl.
- Browser
- Download file 477 Bytes
-
https://huggingface.co/spaces/Yvan-W/TGWD/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Yvan-W/TGWD/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Yvan-W/TGWD/resolve/main/Dockerfile
477 Bytes
| FROM node:22 | |
| WORKDIR /RUN | |
| RUN mkdir TG &&\ | |
| npm install pnpm -g && \ | |
| cd TG && \ | |
| pnpm install tgfs | |
| RUN --mount=type=secret,id=CONFIG,mode=0444,required=true \ | |
| cd TG && \ | |
| wget $(cat /run/secrets/CONFIG) | |
| RUN --mount=type=secret,id=TGToken,mode=0444,required=true \ | |
| wget $(cat /run/secrets/TGToken) && unzip -d .tgfs .tgfs.zip | |
| RUN rm -rf .tgfs.zip && ls -a | |
| CMD cd TG && ./node_modules/.pnpm/tgfs@1.0.20/node_modules/tgfs/node_modules/.bin/tgfs --webdav |