docker files

This commit is contained in:
2023-05-14 18:14:17 +02:00
parent 4c92e00899
commit cfe7ec2f77
2 changed files with 9 additions and 1 deletions

View File

@@ -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
View 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