aswi2020sebela-gitlab/docker/crawler/Dockerfile @ 3da0c6f3
1 | b332d98a | ballakt | FROM python:3-slim |
---|---|---|---|
2 | |||
3 | RUN apt-get update && apt-get install -y cron |
||
4 | RUN yes | apt-get install software-properties-common |
||
5 | RUN apt-get install dialog apt-utils -y |
||
6 | RUN pip install -q --no-cache-dir --upgrade pip |
||
7 | ADD crontab /etc/cron.d/simple-cron |
||
8 | RUN chmod 0644 /etc/cron.d/simple-cron |
||
9 | RUN crontab /etc/cron.d/simple-cron
|
||
10 | |||
11 | ADD requirements.txt /requirements.txt |
||
12 | RUN pip install -r /requirements.txt |
||
13 | CMD cron -f |