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