Files
DDNS/Dockerfile
T
2021-02-18 17:40:37 +08:00

11 lines
320 B
Docker
Executable File

FROM six8/pyinstaller-alpine:alpine-3.6-pyinstaller-v3.4
WORKDIR /app
COPY . .
RUN pyinstaller --onefile --noconfirm --clean ./.build/ddns.spec
FROM alpine:latest
LABEL maintainer="NN708"
COPY --from=0 /app/dist/ddns /
RUN echo "*/5 * * * * /ddns -c /config.json" > /etc/crontabs/root
CMD [ "crond", "-f" ]