-
-
Notifications
You must be signed in to change notification settings - Fork 864
Closed
Description
Hello @dunglas , Hello all,
I recently observed, through bug and debug, that the env variable APP_ENV
is hardcoded in the Dockerfile.
So, for the production image, it automatically adds APP_ENV=prod
, which is fine.
# Prod FrankenPHP image
FROM frankenphp_base AS frankenphp_prod
ENV APP_ENV=prod
However, in dev image, we have APP_ENV=dev
:
# Dev FrankenPHP image
FROM frankenphp_base AS frankenphp_dev
ENV APP_ENV=dev XDEBUG_MODE=off
This env variable overrides the APP_ENV
variable that is defined is my .env
file in my Symfony project.
So, when using frankenphp_dev
image, I'm bound to dev environment.
Problem is, I have a staging
env that I created for my project. Which I cannot use, since I have APP_ENV=dev
:(
Shouldn't we remove the APP_ENV
definition ? At least in the frankenphp_dev
image ?
Metadata
Metadata
Assignees
Labels
No labels