Closed bLackCat-79 closed 2 years ago
I modified the dockerfile to (added libffi-dev and py3-cffi:
FROM alpine:latest MAINTAINER Patrowl.io "getsupport@patrowl.io" LABEL Name="Patrowl\ Data\ Leaks\ (Patrowl engine)" Version="1.4.26"
RUN apk add --update \ python3 \ python3-dev \ py3-pip \ libffi-dev \ py3-cffi \ && rm -rf /var/cache/apk/*
RUN mkdir -p /opt/patrowl-engines/owl_leaks/results
WORKDIR /opt/patrowl-engines/owl_leaks
COPY init.py . COPY engine-owl_leaks.py . COPY requirements.txt . COPY owl_leaks.json.sample owl_leaks.json COPY VERSION .
RUN pip3 install --upgrade pip RUN pip3 install --trusted-host pypi.python.org -r requirements.txt
EXPOSE 5012
CMD ["gunicorn", "engine-owl_leaks:app", "-b", "0.0.0.0:5012", "--access-logfile", "-"]
Using legacy 'setup.py install' for cffi, since package 'wheel' is not installed. Installing collected packages: PatrowlEnginesUtils, wrapt, werkzeug, twitter, PyJWT, pycparser, MarkupSafe, itsdangerous, gunicorn, click, Jinja2, deprecated, cffi, pynacl, flask, PyGithub Running setup.py install for cffi: started Running setup.py install for cffi: finished with status 'error' error: subprocess-exited-with-error
× Running setup.py install for cffi did not run successfully. │ exit code: 1 ╰─> [65 lines of output] Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing
libffi.pc' to the PKG_CONFIG_PATH environment variable Package 'libffi', required by 'virtual:world', not found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing
libffi.pc' to the PKG_CONFIG_PATH environment variable Package 'libffi', required by 'virtual:world', not found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containinglibffi.pc' to the PKG_CONFIG_PATH environment variable Package 'libffi', required by 'virtual:world', not found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing
libffi.pc' to the PKG_CONFIG_PATH environment variable Package 'libffi', required by 'virtual:world', not found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable Package 'libffi', required by 'virtual:world', not foundnote: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure
× Encountered error while trying to install package. ╰─> cffi
note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.