Files
.gitea
docs
pddnsc
settings
state
.dockerignore
.gitignore
.pre-commit-config.yaml
Dockerfile
LICENSE
README.md
mkapi_conf.py
mkdocs.yml
requirements.dev.txt
requirements.docs.txt
requirements.txt
pddnsc/Dockerfile
2024-02-21 21:13:28 +03:00

26 lines
528 B
Docker

FROM python:3.12-alpine
ENV TZ Europe/Moscow
ENV SCHEDULE 1 * * * *
RUN set -x && \
apk add --no-cache --virtual .tz alpine-conf tzdata && \
/sbin/setup-timezone -z $TZ && \
apk del .tz
RUN mkdir /app
WORKDIR /app
COPY pddnsc ./pddnsc
RUN mkdir settings state
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
VOLUME /app/settings
VOLUME /app/state
CMD sh -exc 'echo "\
$SCHEDULE date && cd /app && python -m pddnsc.cli \
" > /etc/crontabs/root && exec crond -l 1 -f'