Download Dockerfile from Yvan-W/fgwefwe: direct link, hf CLI and curl.
- Browser
- Download file 876 Bytes
-
https://huggingface.co/spaces/Yvan-W/fgwefwe/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Yvan-W/fgwefwe/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Yvan-W/fgwefwe/resolve/main/Dockerfile
876 Bytes
| FROM python:3.12 | |
| WORKDIR /RUN | |
| RUN git clone https://github.com/Yvan-W/telegram_media_downloader.git && \ | |
| cd telegram_media_downloader && \ | |
| make install && \ | |
| pip3 install tgcrypto | |
| RUN wget https://downloads.rclone.org/v1.69.0/rclone-v1.69.0-linux-amd64.zip && \ | |
| unzip rclone-v1.69.0-linux-amd64.zip && \ | |
| mv rclone-v1.69.0-linux-amd64/rclone /usr/bin/11223343 && \ | |
| chmod 777 /usr/bin/11223343 && \ | |
| wget https://yvan-w-pan.hf.space/d/%E7%A7%81%E4%BA%BA/OtherFiles/rclone.conf && \ | |
| ls -a /home && \ | |
| mkdir -p /root/.config/rclone && \ | |
| mkdir -p /home/python/.config/rclone && \ | |
| cp -r rclone.conf /.rclone.conf && \ | |
| cp -r rclone.conf /home/python/.config/rclone/ && \ | |
| cp -r rclone.conf /root/.config/rclone/ | |
| RUN chmod 777 -R ./* | |
| RUN chmod 777 -R /RUN | |
| CMD cd telegram_media_downloader && python3 media_downloader.py | |
| EXPOSE 7860 |