ionos_ddns_ssl_supervisor/Dockerfile
2025-03-13 00:01:19 +08:00

26 lines
691 B
Docker

# Base image
FROM ubuntu
# Install tools required
RUN apt update --fix-missing
RUN apt-get install certbot python3-certbot-nginx -y
RUN apt install nano -y
RUN apt install bash wget -y
RUN apt install supervisor -y
RUN apt install python3-pip python3 -y
RUN apt install python3-virtualenv -y
RUN mkdir -p /var/log/supervisor
RUN virtualenv /venv
ENV PATH="/venv/bin:$PATH"
RUN pip install certbot-dns-ionos
RUN pip install public-ip
RUN pip install tqdm
RUN pip install DateTime
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY scripts/ip_update.py /venv/bin
COPY scripts/ionos_dyndns.py /venv/bin
COPY scripts/ssl_update.py /venv/bin
CMD ["/usr/bin/supervisord"]