TrafeX / docker-php-nginx

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

Add php_ldap #159

Closed rtausend closed 7 months ago

rtausend commented 7 months ago

Hi! Would it be possible to Add LDAP for PHP to your image? Thanks a lot!

TrafeX commented 7 months ago

Hi @rtausend,

Yes, you do that by making your own image like this;

FROM trafex/php-nginx:latest

# Temporary switch to root
USER root

# Install ldap
RUN apk add --no-cache php82-ldap

# Switch back to non-root user
USER nobody