Dockerfile 761 B

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