vscode-docker
vscode-docker copied to clipboard
Dockerfile Linter doesn't recognize directory destination in COPY command
Synopsis
Although I correctly added a backslash to the destination of my COPY commands, the Dockerfile linter throws an error claiming that I didn't:
Current Situation
The Dockerfile linter erroneously throws an error about a missing a trailing backslash although it has been provided.
Desired Situation
- A trailing backslash should only be required for the destination path if the source is not a single file. (For paths containing spaces, the array syntax is mandatory.)
- A trailing backslash in the destination path portion of the command should correctly be recognized.
- The use of variables (
ARG,ENVvariables) should be correctly parsed and interpreted.
VS Code Docker Extension Version
v1.29.0
Dockerfile Example Using Variables
The same Dockerfile as above, this time using variables for destination: