#FROM eu.gcr.io/sm-supplierportal-dev-3a96/supplier-portal-api-base #FROM eu.gcr.io/sm-supplierportal-prod-a694/supplier-portal-api-base FROM BASEIMAGE #ENV APP_ENV=prod #ENV APP_DEBUG=0 COPY --chown=www-data:www-data . /app USER www-data # Apply the database migration CMD php /app/bin/console doctrine:migrations:migrate --no-interaction && apache2-foreground #CMD APP_ENV=clouddev && php /app/bin/console doctrine:migrations:migrate --no-interaction && apache2-foreground #CMD php /app/bin/console doctrine:migrations:migrate --no-interaction && apache2-foreground #CMD apache2-foreground
code to explanationMon, 27 Feb 2023