Skip to content

Commit

Permalink
Just run cron
Browse files Browse the repository at this point in the history
  • Loading branch information
enolfc committed Jul 28, 2022
1 parent 0f427de commit 68b404a
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -22,6 +19,4 @@ COPY ./dashboard /fedcloud-dashboard/dashboard

WORKDIR /fedcloud-dashboard

EXPOSE 8000

CMD ["/usr/bin/supervisord"]
CMD ["cron", "-f"]

0 comments on commit 68b404a

Please sign in to comment.