Commit f0439007 authored by Erick Hitter's avatar Erick Hitter

Need cron to run...cron

parent d507edda
Pipeline #1869 passed with stages
in 2 minutes and 30 seconds
......@@ -7,7 +7,9 @@ RUN echo "deb http://security.debian.org/ buster/updates main" >> /etc/apt/sourc
RUN apt-get update \
&& apt-get -y --no-install-recommends install \
python3 python3-pip \
cron \
python3 \
python3-pip \
&& pip3 install setuptools \
&& pip3 install s3cmd \
&& s3cmd --version \
......@@ -20,5 +22,4 @@ RUN apt-get update \
COPY s3-purge.sh /usr/local/bin/s3-purge
COPY crontab /etc/cron.d/s3-purge
RUN touch /var/log/s3-purge
CMD ["tail", "-F", "/var/log/s3-purge"]
CMD ["cron", "-f"]
20 1 * * * root s3-purge >> /var/log/s3-purge 2>/dev/null
20 1 * * * root s3-purge >> /var/log/s3-purge 2>/var/log/s3-purge-err
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment