ldap_forwardauth/build/php/Dockerfile

17 lines
317 B
Text
Raw Permalink Normal View History

2024-05-27 04:29:36 +00:00
FROM php:fpm-alpine
# install packages
RUN apk add --no-cache runuser shadow openldap-dev
RUN rm -fr /var/cache/apk/*
# update php user
RUN groupmod --gid 1000 www-data
RUN usermod --uid 1000 www-data
# install php packages
RUN docker-php-ext-install ldap
# remove build packages
RUN apk del shadow
USER www-data