docker files
This commit is contained in:
@@ -12,5 +12,5 @@ COPY scrapy.cfg .
|
|||||||
|
|
||||||
COPY html_scrapy ./html_scrapy
|
COPY html_scrapy ./html_scrapy
|
||||||
COPY searching ./searching
|
COPY searching ./searching
|
||||||
CMD ls && scrapy crawl legacy_spider
|
CMD ls && scrapy crawl legacy_spider && scrapy crawl fetwiki_spider
|
||||||
#spider html_scrapy/spiders/legacy_spider.py
|
#spider html_scrapy/spiders/legacy_spider.py
|
||||||
8
Dockerfile_http
Normal file
8
Dockerfile_http
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
from python:3.8
|
||||||
|
|
||||||
|
workdir /srv
|
||||||
|
RUN pip3 install fastapi uvicorn pyyaml elasticsearch jinja2
|
||||||
|
|
||||||
|
COPY httpdemo ./httpdemo
|
||||||
|
COPY searching ./searching
|
||||||
|
CMD ls && ls httpdemo && uvicorn --port 8080 --host 0.0.0.0 httpdemo:app
|
||||||
Reference in New Issue
Block a user