Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Dockerfile): Do not use environment variables set in other layers
In previous Docker versions, the `ENV` directive was scoped to the current build stage [1]. While this was relaxed by now so that "a stage inherits any environment variables that were set using ENV by its parent stage or any ancestor" [2], a stage still cannot expand variables that just were declared earlier in the file. The reason why this did not result in a build error is that unset variables are silently expanded to the quoted empty string ("") which matches everything. Fix that bug by hard-coding the paths. This also fixes another bug where copying from `sbtbuild` used the `DART_SDK` variable. [1]: moby/moby#37345 (comment) [2]: https://docs.docker.com/engine/reference/builder/#env Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
- Loading branch information