16 lines
369 B
Docker
16 lines
369 B
Docker
from python:3.8
|
|
|
|
workdir /srv
|
|
|
|
RUN pip3 install setuptools_scm
|
|
|
|
RUN pip3 install elasticsearch
|
|
RUN pip3 install scrapy
|
|
COPY requirements.txt .
|
|
RUN pip3 install -r requirements.txt
|
|
COPY scrapy.cfg .
|
|
|
|
COPY html_scrapy ./html_scrapy
|
|
COPY searching ./searching
|
|
CMD ls && scrapy crawl legacy_spider && scrapy crawl fetwiki_spider
|
|
#spider html_scrapy/spiders/legacy_spider.py |