rivapereira123 commited on
Commit
ceeb314
·
verified ·
1 Parent(s): 6047665

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -8
Dockerfile CHANGED
@@ -5,11 +5,5 @@ COPY . .
5
 
6
  RUN pip install -r requirements.txt
7
 
8
- # Run script every hour (using cron)
9
- RUN apt-get update && apt-get install -y cron
10
- COPY cronjob /etc/cron.d/cronjob
11
- RUN chmod 0644 /etc/cron.d/cronjob
12
- RUN crontab /etc/cron.d/cronjob
13
- RUN touch /var/log/cron.log
14
-
15
- CMD ["cron", "-f"]
 
5
 
6
  RUN pip install -r requirements.txt
7
 
8
+ # Run script immediately (no cron)
9
+ CMD ["python", "app.py"]