FROM alpine VOLUME ["/git", "/export"] RUN apk add --no-cache git openssh-client COPY update_repo /etc/periodic/15min/ RUN chmod +x /etc/periodic/15min/update_repo RUN mkdir -p /etc/after/pull COPY entrypoint.sh / RUN chmod +x /entrypoint.sh ENV GIT_SYNC_FORCE_ACCEPT_SSH_PORT_KEY=22 ENTRYPOINT ["/entrypoint.sh"] CMD ["crond", "-f"]