Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
|
@@ -2,15 +2,18 @@ FROM node:22
|
|
| 2 |
|
| 3 |
WORKDIR /RUN
|
| 4 |
|
| 5 |
-
RUN
|
|
|
|
|
|
|
| 6 |
pnpm install tgfs
|
| 7 |
|
| 8 |
RUN --mount=type=secret,id=CONFIG,mode=0444,required=true \
|
|
|
|
| 9 |
wget $(cat /run/secrets/CONFIG)
|
| 10 |
|
| 11 |
RUN --mount=type=secret,id=TGToken,mode=0444,required=true \
|
| 12 |
wget $(cat /run/secrets/TGToken) && unzip -d .tgfs .tgfs.zip
|
| 13 |
|
| 14 |
-
RUN ls -a
|
| 15 |
|
| 16 |
-
CMD ./node_modules/.pnpm/tgfs@1.0.20/node_modules/tgfs/node_modules/.bin/tgfs --webdav
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /RUN
|
| 4 |
|
| 5 |
+
RUN mkdir TG &&\
|
| 6 |
+
npm install pnpm -g && \
|
| 7 |
+
cd TG && \
|
| 8 |
pnpm install tgfs
|
| 9 |
|
| 10 |
RUN --mount=type=secret,id=CONFIG,mode=0444,required=true \
|
| 11 |
+
cd TG && \
|
| 12 |
wget $(cat /run/secrets/CONFIG)
|
| 13 |
|
| 14 |
RUN --mount=type=secret,id=TGToken,mode=0444,required=true \
|
| 15 |
wget $(cat /run/secrets/TGToken) && unzip -d .tgfs .tgfs.zip
|
| 16 |
|
| 17 |
+
RUN rm -rf .tgfs.zip && ls -a
|
| 18 |
|
| 19 |
+
CMD cd TG && ./node_modules/.pnpm/tgfs@1.0.20/node_modules/tgfs/node_modules/.bin/tgfs --webdav
|