docker-cron/Dockerfile

20 lines
467 B
Docker
Raw Permalink Normal View History

2024-01-23 20:38:49 -08:00
FROM ubuntu:bionic
2017-07-22 13:31:33 -07:00
RUN apt-get update && \
apt-get install -y wget python3-pip python-pip cron && \
pip install --upgrade pip && \
pip3 install --upgrade pip && \
find /etc/cron* -type f -delete && \
touch /etc/crontab && \
2024-01-23 20:38:49 -08:00
useradd --create-home ubuntu && \
2017-07-22 13:31:33 -07:00
rm -rf /var/lib/apt/lists/*
ADD start /start
ADD crontab /etc/cron.d/base
RUN chmod +x /start && \
mkdir -p /srv/cron && \
touch /srv/cron/crontab
ENTRYPOINT ["/start"]