Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
21 lines (13 sloc) 505 Bytes
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y cron logrotate curl
RUN curl -sL | bash -
RUN apt-get install -y nodejs
RUN mkdir -p /usr/src/app
COPY ./templates/log-rotation /etc/logrotate.d/my-cron-job
COPY ./templates/crontab /tmp/crontab
RUN touch /etc/cron.d/my-cron-job
RUN chmod 0644 /etc/cron.d/my-cron-job
RUN touch /var/log/cron.log
COPY ./templates/ /tmp/
RUN chmod +x /tmp/
CMD ["/tmp/"]