hnhx / librex

Framework and javascript free privacy respecting meta search engine
GNU Affero General Public License v3.0
785 stars 92 forks source link

Unable to Build Docker Image #279

Closed ghost closed 5 months ago

ghost commented 5 months ago

On my own servers, all Docker images need to be available for ARM64 and must be available else where other than Docker Hub. Therefore, I'll have to build the image on the server itself.

However, when building the LibreX Docker image, I've ran into an error:

 > [4/7] RUN apk add php8 php8-fpm php8-dom php8-curl php8-json --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing &&    sed -i 's/^\s*listen = 127.0.0.1:9000/listen = \/run\/php8\/php-fpm8.sock/' /etc/php8/php-fpm.d/www.conf &&    sed -i 's/^\s*;\s*listen.owner = nobody/listen.owner = nginx/' /etc/php8/php-fpm.d/www.conf &&    sed -i 's/^\s*;\s*listen.group = nobody/listen.group = nginx/' /etc/php8/php-fpm.d/www.conf &&    sed -i 's/^\s*;\s*listen.mode = 0660/listen.mode = 0660/' /etc/php8/php-fpm.d/www.conf:                                                                                                                                                                             
0.148 fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/aarch64/APKINDEX.tar.gz                                                                                                                                                        
0.482 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz                                                                                                                                                         
0.781 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz
1.256 ERROR: unable to select packages:
1.256   php8 (no such package):
1.256     required by: world[php8]
1.256   php8-curl (no such package):
1.256     required by: world[php8-curl]
1.256   php8-dom (no such package):
1.256     required by: world[php8-dom]
1.256   php8-fpm (no such package):
1.256     required by: world[php8-fpm]
1.256   php8-json (no such package):
1.256     required by: world[php8-json]
------
ERROR: failed to solve: process "/bin/sh -c apk add php8 php8-fpm php8-dom php8-curl php8-json --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing &&    sed -i 's/^\\s*listen = 127.0.0.1:9000/listen = \\/run\\/php8\\/php-fpm8.sock/' ${WWW_CONFIG} &&    sed -i 's/^\\s*;\\s*listen.owner = nobody/listen.owner = nginx/' ${WWW_CONFIG} &&    sed -i 's/^\\s*;\\s*listen.group = nobody/listen.group = nginx/' ${WWW_CONFIG} &&    sed -i 's/^\\s*;\\s*listen.mode = 0660/listen.mode = 0660/' ${WWW_CONFIG}" did not complete successfully: exit code: 5

I ran:

git clone https://github.com/hnhx/librex
cd librex
docker build -t ark.sudovanilla.org/korbs/librex:arm64 .