Skip to content

Resolving docker build warnings during CD#340

Merged
bdossantos merged 1 commit into
masterfrom
copilot/fix-docker-warnings
Jun 4, 2026
Merged

Resolving docker build warnings during CD#340
bdossantos merged 1 commit into
masterfrom
copilot/fix-docker-warnings

Conversation

Copilot AI commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Pull request created by AI Agent

- Fix legacy ENV format for BUILD_DEPENDENCIES (line 13)
- Add ARG VERSION to run stage to fix undefined variable warning
- Apply fixes to all php-lol variants (8.1, 8.2, 8.3, 8.4)
@bdossantos bdossantos marked this pull request as ready for review June 4, 2026 10:16
Copilot AI review requested due to automatic review settings June 4, 2026 10:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to reduce Docker build-time warnings during CD for the php-lol image variants by adjusting Dockerfile variable declarations so BuildKit/Hadolint-style linters are less likely to flag legacy ENV formatting and undefined variables.

Changes:

  • Rewrites ENV BUILD_DEPENDENCIES into key="value" format (instead of legacy key value) across PHP 8.1–8.4 Dockerfiles.
  • Adds ARG VERSION=<x.y.z> in the final run stage so $VERSION is explicitly defined in that stage before LABEL expansion.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
dockerfiles/php-lol/Dockerfile.8.4 Converts BUILD_DEPENDENCIES ENV to key=value format; adds ARG VERSION for label expansion in final stage.
dockerfiles/php-lol/Dockerfile.8.3 Same as 8.4: ENV formatting change + ARG VERSION in run stage.
dockerfiles/php-lol/Dockerfile.8.2 Same as 8.4: ENV formatting change + ARG VERSION in run stage.
dockerfiles/php-lol/Dockerfile.8.1 Same as 8.4: ENV formatting change + ARG VERSION in run stage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 227 to 230
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION=8.4.21

Comment on lines 229 to 232
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION=8.3.31

Comment on lines 229 to 232
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION=8.2.31

Comment on lines 229 to 232
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION=8.1.34

@bdossantos bdossantos merged commit 9e5d4f5 into master Jun 4, 2026
17 of 18 checks passed
@bdossantos bdossantos deleted the copilot/fix-docker-warnings branch June 4, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants