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 ab8ac81 commit 276da61Copy full SHA for 276da61
fpm-alpine/8.3/dockerfile
@@ -76,21 +76,8 @@ RUN apk del --no-cache \
76
libtool && \
77
rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
78
79
-# Set the working directory
80
-WORKDIR /var/www
81
-
82
-# Create a non-root user and group
83
-RUN getent group ${GROUP} || addgroup -g 1000 ${GROUP}
84
-RUN id -u ${USER} || adduser --shell /sbin/nologin --disabled-password --no-create-home --uid 1000 --ingroup ${GROUP} ${USER}
85
86
-# Grant write permissions to the non-root user and group
87
-RUN chown -R ${USER}:${GROUP} /var/www
88
89
# Expose PHP-FPM port
90
EXPOSE 9000
91
92
-# Switch to non-root user
93
-USER ${USER}
94
95
# Start PHP-FPM
96
-CMD ["php-fpm"]
+CMD ["php-fpm"]
0 commit comments