Skip to content

Commit c38d72b

Browse files
committed
docker: switch to php 8.3 and prevent "failed switching to root" errors
Signed-off-by: Patrizio Bekerle <[email protected]>
1 parent daf2c1e commit c38d72b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN composer dump-env prod
1313
# continue stage build with the desired image and copy the source including the
1414
# dependencies downloaded by composer
1515
# https://dockerfile.readthedocs.io/en/latest/content/DockerImages/dockerfiles/php-apache.html
16-
FROM webdevops/php-nginx:8.2-alpine
16+
FROM webdevops/php-nginx:8.3-alpine
1717

1818
USER root
1919

@@ -28,3 +28,7 @@ RUN mkdir -p /app/var/cache/prod
2828

2929
# change web root
3030
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

Comments
 (0)