Closed
Description
Actual behavior
Given
COPY file_that_might_not_exis[t] /dest
Kaniko returns this error when the file does not exist
failed to get files used from context: copy failed: no source files specified
Expected behavior
Match current Docker behavior - when glob is used, COPY does not need to copy at least one file.
To Reproduce
- Try simple dockerfile
Additional Information
- Dockerfile
FROM alpine
COPY known_host[s] /etc/ssh/ssh_known_hosts
- Build Context
Don't make the known_hosts
file.
- Kaniko Image (fully qualified with digest)
Triage Notes for the Maintainers
Description | Yes/No |
---|---|
Please check if this a new feature you are proposing |
|
Please check if the build works in docker but not in kaniko |
|
Please check if this error is seen when you use --cache flag |
|
Please check if your dockerfile is a multistage dockerfile |
|