diff --git a/Dockerfile b/Dockerfile index e30a9db..8f799d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,9 +11,7 @@ RUN chmod 0644 /etc/cron.d/hello-cron RUN touch /var/log/cron.log #Install Cron -RUN apt-get update -RUN apt-get -y install cron - +RUN apt-get -y update && apt-get -y install cron # Run the command on container startup CMD cron && tail -f /var/log/cron.log