upd Dockerfile
This commit is contained in:
parent
6e39ce20a6
commit
62df87f027
13
Dockerfile
13
Dockerfile
@ -4,23 +4,22 @@ ENV TZ Europe/Moscow
|
|||||||
ENV SCHEDULE 1 * * * *
|
ENV SCHEDULE 1 * * * *
|
||||||
|
|
||||||
RUN set -x && \
|
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 && \
|
/sbin/setup-timezone -z $TZ && \
|
||||||
apk del .tz
|
apk del .tz
|
||||||
|
|
||||||
RUN mkdir /app
|
RUN mkdir /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY pddnsc ./pddnsc
|
COPY pddnsc ./pddnsc
|
||||||
RUN mkdir settings
|
RUN mkdir settings state
|
||||||
RUN mkdir state
|
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
VOLUME /app/settings
|
||||||
VOLUME /app/state
|
VOLUME /app/state
|
||||||
|
|
||||||
CMD sh -c 'echo "\
|
CMD sh -exc 'echo "\
|
||||||
$SCHEDULE cd /app && python -m pddnsc.cli \
|
$SCHEDULE cd /app && python -m pddnsc.cli \
|
||||||
" > /etc/crontabs/root && exec crond -l 1 -f'
|
" > /etc/crontabs/root && exec crond -l 1 -f'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user