# FROM algolia/docsearch-scraper-base # LABEL maintainer="docsearch@algolia.com" FROM public.ecr.aws/lambda/python:3.6 WORKDIR /app COPY scraper/src ./src # Install DocSearch dependencies COPY Pipfile . COPY Pipfile.lock . RUN pip3 install pipenv RUN ls ./src -a RUN pipenv install RUN chmod 644 $(find . -type f) RUN chmod 755 $(find . -type d) # WORKDIR /app/src ENTRYPOINT ["python", "-m", "awslambdaric"] CMD ["src.index"]