upd Dockerfile

This commit is contained in:
Dmitry Belyaev 2024-02-21 11:43:24 +03:00
parent 6e39ce20a6
commit 62df87f027
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3
1 changed files with 6 additions and 7 deletions

View File

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