NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
22.34k stars 2.59k forks source link

Consider adding piwheels to fix Raspberry Pi compile error #2161

Open AllanChain opened 2 years ago

AllanChain commented 2 years ago

Is your feature request related to a problem? Please describe. Yes. There are many reports of DNS package installation failure on Raspberry Pi, for example:

Describe the solution you'd like

The packages need compilation because no binary for ARM is found on PyPI. But we can avoid the compilation by adding piwheels.org to /etc/pip.conf:

[global]
extra-index-url=https://www.piwheels.org/simple

Maybe we can add the index conditionally based on the CPU architecture. But I'm not very familiar with docker and not sure how to do this.

Describe alternatives you've considered

As a workaround, users can create ./app/Dockerfile

FROM jc21/nginx-proxy-manager:latest

RUN echo -e "[global]\nextra-index-url=https://www.piwheels.org/simple" > /etc/pip.conf
RUN pip install certbot-dns-<your provider> --no-cache-dir

ENTRYPOINT [ "/init" ]

And change docker-compose.yml to:

    # image: 'jc21/nginx-proxy-manager:latest'
    build: ./app

Additional context

github-actions[bot] commented 7 months ago

Issue is now considered stale. If you want to keep it open, please comment :+1: