Skip to content

Fix copy error when building images of job-exporter with docker 28.2+ - #97

Merged
zhogu merged 1 commit into
devfrom
zhogu/fix-cicd
Oct 16, 2025
Merged

Fix copy error when building images of job-exporter with docker 28.2+#97
zhogu merged 1 commit into
devfrom
zhogu/fix-cicd

Conversation

@zhogu

@zhogu zhogu commented Oct 15, 2025

Copy link
Copy Markdown
Contributor

This pull request makes a minor change to the job-exporter.common.dockerfile to ensure consistency in file copying commands.

The previous error is due to a stricter rule introduced in Docker 28.2 (BuildKit) about how COPY handles wildcards and multiple sources.

  • Changed the COPY command for moneo-*-exporter_entrypoint.sh to explicitly use the ./ destination, aligning it with Docker best practices.

@zhogu zhogu changed the title Fix copy error on docker 28 Fix copy error when building images of job-exporter with docker 28.2+ Oct 15, 2025
@zhogu
zhogu marked this pull request as ready for review October 15, 2025 07:05

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 fixes a file copying issue in the Docker build process for job-exporter when using Docker version 28.2+. The change ensures compatibility with newer Docker versions by making the destination path explicit.

  • Updated COPY command destination path to use explicit ./ syntax

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@microsoft Microsoft (microsoft) deleted a comment from Copilot AI Oct 15, 2025
@zhogu
zhogu merged commit b56c29e into dev Oct 16, 2025
3 checks passed
This was referenced Nov 11, 2025
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.

4 participants