Created
September 10, 2022 08:34
-
-
Save nsuvorov83/191149356055d208d96bf95f7423fa08 to your computer and use it in GitHub Desktop.
Starting docker with two processes: core daemon (yandex-disk) and fake process to prevent docker to stop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:22.04 | |
| RUN apt-get update \ | |
| # Upgrade | |
| && apt-get upgrade -y \ | |
| && apt-get dist-upgrade -y \ | |
| # Install dependencies | |
| && apt-get install wget -y \ | |
| # Download & Install Yandex.Disk | |
| && wget https://repo.yandex.ru/yandex-disk/yandex-disk_latest_amd64.deb \ | |
| && dpkg -i yandex-disk_latest_amd64.deb \ | |
| && apt-get install -f -y \ | |
| # Cleanup | |
| && rm *.deb \ | |
| && apt-get purge -y \ | |
| && apt-get autoremove -y \ | |
| && apt-get autoclean -y \ | |
| && mkdir /root/Yandex.Disk | |
| ENTRYPOINT ["sh"] | |
| CMD [ "-c", "yandex-disk start --dir=/root/Yandex.Disk && tail -f /dev/null"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment