add debug dev

This commit is contained in:
Andras Bacsai
2024-12-16 12:05:16 +01:00
parent d58abd1998
commit 52310fd21a
2 changed files with 9 additions and 0 deletions

View File

@@ -99,6 +99,9 @@ RUN mkdir -p /usr/local/bin && \
COPY docker/production/etc/php/conf.d/zzz-custom-php.ini /usr/local/etc/php/conf.d/zzz-custom-php.ini
ENV PHP_OPCACHE_ENABLE=1
# Configure entrypoint
COPY --chmod=755 docker/production/entrypoint.d/ /usr/local/bin/entrypoint.d/
# Copy application files from previous stages
COPY --from=base --chown=www-data:www-data /var/www/html/vendor ./vendor
COPY --from=static-assets --chown=www-data:www-data /app/public/build ./public/build

View File

@@ -0,0 +1,6 @@
# Debug mode
if [ "$DEBUG" = "true" ]; then
echo "Debug mode is enabled"
echo "Installing development dependencies..."
composer install --dev --no-scripts
fi