Closed tomchkk closed 4 months ago
Use the beta images and it should work. Sorry for the confusion!
Oh wait… sorry, read the email too fast 🤣
I’ll take a look into this
I just pushed up some clarity on this. I did some extra work to try and have the variables depend on each other, but unfortunately they get expanded on build and aren't referenced the way I intended at build.
I updated the docs with the added clarity: https://serversideup.net/open-source/docker-php/docs/reference/environment-variable-specification
Affected Docker Images
serversideup/php:beta-8.2-fpm-nginx-alpine
Docker Labels of the affected images
No response
Current Behavior
In the environment variable specification, the default value of
NGINX_WEBROOT
is given as: "$APP_BASE_DIR/public". Having set the followingAPP_BASE_DIR=/var/www
,NGINX_WEBROOT
is still set as "/var/www/html/public" in the container.Expected Behavior
I expect the value of
NGINX_WEBROOT
to change depending on the value ofAPP_BASE_DIR
.Steps To Reproduce
ENV APP_BASE_DIR=/var/www
env | grep NGINX_WEBROOT
Host Operating System
macOS 14.4.1 (23E224)
Docker Version
Anything else?
No response