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

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /app
4
+ 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"]