diff --git a/Dockerfile b/Dockerfile index 5c24219e..1659098e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,9 @@ FROM python:3.6 WORKDIR /app ADD . /app -RUN pip install --requirement ./requirements.txt +RUN apt-get update && apt-get -y install cron && pip install --requirement ./requirements.txt COPY . ./ ENV DJANGO_SETTINGS_MODULE=world_cup_predictions.settings +RUN (crontab -l ; echo "00 22 * * * python update_users_scores.py") | crontab +CMD ["crond", "-f", "-d", "8"] EXPOSE 8000 \ No newline at end of file