TrafeX / docker-php-nginx

Docker image with PHP-FPM 8.3 & Nginx 1.26 on Alpine Linux
https://hub.docker.com/r/trafex/php-nginx
MIT License
1.37k stars 736 forks source link

Can't install anything. #91

Closed lurchpop closed 2 years ago

lurchpop commented 2 years ago

If I import this into my Dockerfile, attempts to install anything will fail because of the nobody user. RUN apk add --no-cache php8-simplexml ERROR: Unable to lock database: Permission denied ERROR: Failed to open apk database: Permission denied Any way to fix this without forking?

lurchpop commented 2 years ago

Nevermind. Solution is to switch users. USER root RUN apk add --no-cache php8-simplexml USER nobody