aswi2020sebela-gitlab/docker/crawler/Dockerfile @ 0a2832fb
1 |
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/crawler-cron |
8 |
RUN chmod 0644 /etc/cron.d/crawler-cron |
9 |
RUN crontab /etc/cron.d/crawler-cron
|
10 |
|
11 |
ADD requirements.txt /requirements.txt |
12 |
RUN pip install -r /requirements.txt |
13 |
CMD cron -f |