Skip to content

Dockerfile has lot of ENV command - it maked unnecessary layers #95

@jakubboucek

Description

@jakubboucek

Dockerfile of all PHP packages has too much ENV directives. Every one makes new layer.

Request: Compose it to single call.

Currently:

# Configure Apache & PHP
ENV PHP_ERROR_REPORTING=32767
ENV PHP_DISPLAY_ERRORS=1
ENV PHP_DISPLAY_STARTUP_ERRORS=1
ENV PHP_ERROR_LOG=""
ENV PHP_LOG_ERRORS=0
ENV PHP_MAX_EXECUTION_TIME=30
ENV PHP_MEMORY_LIMIT=2G
ENV PHP_SESSION_SAVE_PATH=""
ENV TZ=UTC

Expected:

# Configure Apache & PHP
ENV PHP_ERROR_REPORTING=32767 \
    PHP_DISPLAY_ERRORS=1 \
    PHP_DISPLAY_STARTUP_ERRORS=1 \
    PHP_ERROR_LOG="" \
    PHP_LOG_ERRORS=0 \
    PHP_MAX_EXECUTION_TIME=30 \
    PHP_MEMORY_LIMIT=2G \
    PHP_SESSION_SAVE_PATH="" \
    TZ=UTC

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions