Browse Source

added missing dependency protego

Fabian Peter Hammerle 4 years ago
parent
commit
edbf268edc
1 changed files with 4 additions and 0 deletions
  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"]