We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daf2c1e commit c38d72bCopy full SHA for c38d72b
Dockerfile
@@ -13,7 +13,7 @@ RUN composer dump-env prod
13
# continue stage build with the desired image and copy the source including the
14
# dependencies downloaded by composer
15
# https://dockerfile.readthedocs.io/en/latest/content/DockerImages/dockerfiles/php-apache.html
16
-FROM webdevops/php-nginx:8.2-alpine
+FROM webdevops/php-nginx:8.3-alpine
17
18
USER root
19
@@ -28,3 +28,7 @@ RUN mkdir -p /app/var/cache/prod
28
29
# change web root
30
ENV WEB_DOCUMENT_ROOT /app/public
31
+
32
+# To prevent `failed switching to "root"` errors
33
+# See https://github.com/webdevops/Dockerfile/issues/366
34
+USER root
0 commit comments