summaryrefslogtreecommitdiff
path: root/build/php
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-05-27 00:29:36 -0400
committerFreya Murphy <freya@freyacat.org>2024-05-27 00:29:36 -0400
commitcb9d1193c37b7567dcad5497330169d43ab1e8a2 (patch)
tree41fea58928d5d4cf87306458114f5465b6620711 /build/php
downloadldap_forwardauth-cb9d1193c37b7567dcad5497330169d43ab1e8a2.tar.gz
ldap_forwardauth-cb9d1193c37b7567dcad5497330169d43ab1e8a2.tar.bz2
ldap_forwardauth-cb9d1193c37b7567dcad5497330169d43ab1e8a2.zip
initial
Diffstat (limited to 'build/php')
-rw-r--r--build/php/Dockerfile16
1 files changed, 16 insertions, 0 deletions
diff --git a/build/php/Dockerfile b/build/php/Dockerfile
new file mode 100644
index 0000000..252e516
--- /dev/null
+++ b/build/php/Dockerfile
@@ -0,0 +1,16 @@
+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