Dockerfile 720 B

123456789101112131415161718192021
  1. FROM ubuntu:24.04
  2. ENV DEBIAN_FRONTEND=noninteractive \
  3. PYTHONUNBUFFERED=1
  4. RUN apt-get update \
  5. && apt-get install -y --no-install-recommends software-properties-common gpg-agent \
  6. && add-apt-repository -y ppa:deluge-team/stable \
  7. && apt-get install -y --no-install-recommends deluge-web \
  8. && apt-get purge -y --auto-remove software-properties-common gpg-agent \
  9. && rm -rf /var/lib/apt/lists/*
  10. COPY deluge-web_init.sh /usr/local/bin/deluge-web_init.sh
  11. VOLUME ["/config"]
  12. EXPOSE 80
  13. HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
  14. CMD python3 -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:80/', timeout=4)" || exit 1
  15. CMD ["/usr/local/bin/deluge-web_init.sh"]