Fix Dockerfile COPY syntax for multi-file copy#38
Open
dcasota wants to merge 1 commit intovmware:masterfrom
Open
Fix Dockerfile COPY syntax for multi-file copy#38dcasota wants to merge 1 commit intovmware:masterfrom
dcasota wants to merge 1 commit intovmware:masterfrom
Conversation
- Split 'poi-pkglist yjson' into separate lines (two distinct files) - Add trailing slash to destination '/usr/bin/' as required by Docker when copying multiple files Without this fix, docker build fails with: 'When using COPY with more than one source file, the destination must be a directory and end with a /'
dcasota
pushed a commit
to dcasota/photon-os-installer
that referenced
this pull request
Mar 29, 2026
…om-prod replace packages-prod.broadcom.com with packages.broadcom.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
While building the
photon/installerDocker image, the build fails at step 23 with the error:Root Cause
The
docker/Dockerfilehas two issues in the COPY instruction:poi-pkglist yjsonon one line is interpreted as a single argument with a space, but these are two separate files that should each be on their own line/usr/binis missing a trailing slash, which is required by Docker when copying multiple filesFix
poi-pkglist yjsoninto two separate lines (poi-pkglist \andyjson \)/usr/bin/Testing
After applying this fix, the Docker image builds successfully and the Photon OS ISO can be generated.
Reference