docker-cron/Dockerfile

11 lines
259 B
Docker
Raw Permalink Normal View History

# 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
2023-12-01 22:51:34 +01:00
CMD crontab /root/cron/crontab-file && cron -f