FROM alpine:3.11 ARG SCRAPY_PACKAGE_VERSION=1.8.0-r0 ARG SCRAPY_PACKAGE_REPOSITORY=http://dl-cdn.alpinelinux.org/alpine/edge/testing RUN apk add --no-cache --repository $SCRAPY_PACKAGE_REPOSITORY \ py3-scrapy=$SCRAPY_PACKAGE_VERSION \ && 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"]