From 68b404afa4593fa6f73ccc642620851ad5a00177 Mon Sep 17 00:00:00 2001 From: Enol Fernandez Date: Thu, 28 Jul 2022 13:00:12 +0100 Subject: [PATCH] Just run cron --- Dockerfile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 20d8ef6..2f30a47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,14 @@ FROM python:3.10 -# Get supervisor and cron -# Do not get picky on exact cron & supervisor versions +# Get cron +# Do not get picky on exact cron version so ignore DL3008 # hadolint ignore=DL3008 RUN apt-get update \ - && apt-get install --no-install-recommends -y supervisor cron \ + && apt-get install --no-install-recommends -y cron \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ - && mkdir -p /var/log/supervisor \ && rm /etc/cron.daily/* -COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf - COPY cron-update-endpoints /etc/cron.d/endpoints COPY requirements.txt /fedcloud-dashboard/requirements.txt @@ -22,6 +19,4 @@ COPY ./dashboard /fedcloud-dashboard/dashboard WORKDIR /fedcloud-dashboard -EXPOSE 8000 - -CMD ["/usr/bin/supervisord"] +CMD ["cron", "-f"]