diff --git a/Dockerfile b/Dockerfile index af9c4f4..c631b32 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,8 @@ COPY crontab . RUN touch /app/cron.log -RUN chmod 0644 /app/crontab +RUN chmod 777 /app/crontab RUN apt-get update RUN apt-get -y install cron -RUN cron && tail -f /app/cron.log \ No newline at end of file +ENTRYPOINT [ "cron" ,"&&","tail","-f", "/app/cron.log"] \ No newline at end of file