Skip to content

Instantly share code, notes, and snippets.

@nsuvorov83
Created September 10, 2022 08:34
Show Gist options
  • Select an option

  • Save nsuvorov83/191149356055d208d96bf95f7423fa08 to your computer and use it in GitHub Desktop.

Select an option

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
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