We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e078fa commit 991d56fCopy full SHA for 991d56f
docker/php/Dockerfile
@@ -1,9 +1,9 @@
1
ARG PHPVER
2
FROM php:${PHPVER}-fpm
3
4
-# set www-data to our host user's UID
+# attempt to set www-data's UID to our host user's UID
5
ARG HOSTUID
6
-RUN usermod -u $HOSTUID www-data; groupmod -g $HOSTUID www-data
+CMD [ "$HOSTUID" -gt "1" ] && usermod -u $HOSTUID www-data && groupmod -g $HOSTUID www-data
7
8
# Install some stuff
9
RUN apt-get update -y && apt-get install -y sendmail libpng-dev
0 commit comments