Преглед изворни кода

added missing dependency protego

Fabian Peter Hammerle пре 5 година
родитељ
комит
edbf268edc
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      Dockerfile

+ 4 - 0
Dockerfile

@@ -7,5 +7,9 @@ RUN apk add --no-cache --repository $SCRAPY_PACKAGE_REPOSITORY \
     && adduser -S spider
 
 USER spider
+# > pkg_resources.DistributionNotFound: The 'protego>=0.1.15' distribution was not found and is required by Scrapy
+ARG PROTEGO_VERSION=0.1.16
+RUN pip3 install --user protego==$PROTEGO_VERSION
+
 COPY ./ping.py /ping.py
 ENTRYPOINT ["scrapy", "runspider", "/ping.py"]