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 |
7736e60c
|
Tomáš Ballák
|
COPY crontab /etc/cron.d/crawler-cron
|
8 |
dfcface9
|
Tomáš Ballák
|
RUN chmod 0644 /etc/cron.d/crawler-cron
|
9 |
|
|
RUN crontab /etc/cron.d/crawler-cron
|
10 |
b332d98a
|
ballakt
|
|
11 |
|
|
ADD requirements.txt /requirements.txt
|
12 |
|
|
RUN pip install -r /requirements.txt
|
13 |
|
|
CMD cron -f
|