ionos_ddns_ssl/Dockerfile
2025-03-11 19:26:36 +08:00

25 lines
645 B
Docker

# Base image
FROM alpine:latest
# Install tools required
RUN apk --no-cache upgrade
RUN apk add --no-cache --virtual=run-deps certbot bash py3-pip python3 python3-dev wget nano py3-virtualenv
RUN virtualenv /venv
ENV PATH="/venv/bin:$PATH"
RUN pip install certbot-dns-ionos
RUN pip install public-ip
RUN mkdir -p /etc/letsencrypt/.secrets
RUN chown root:root /etc/letsencrypt/.secrets
RUN chmod 700 /etc/letsencrypt/.secrets
# Copy scripts
WORKDIR /scripts
COPY ./scripts /scripts
RUN chmod -R +x /scripts
# copy IONOS login
COPY ./patachina.it.ini /etc/letsencrypt/.secrets
# Image starting command
CMD ["/bin/bash", "/scripts/start.sh"]