docker-cron/Dockerfile

11 lines
259 B
Docker

# Dockerfile to create image with cron services
FROM ubuntu:latest
# Install Cron
RUN apt-get update \
&& apt-get -y install cron \
&& rm -rf /var/lib/apt/lists/*
# Run the command on container startup
CMD crontab /root/cron/crontab-file && cron -f