Is your feature request related to a problem?
COPY . . in the Dockefile is always a tricky thing. It copies more than dex needs, which leads to unwanted behavior.
Dockerfile: Changing anything makes rebuilding the dex.
.git/: Actually, dex needs git for building to extract version (and other things). However, any new branch, tag, or commit invalidates the downward layers of a docker image.
examples/: I think the idea is clear.
*.md: ...
Describe the solution you'd like to see
- Add files/folders to .dockerignore (including .git folder).
- Do all git operations outside of the docker context and then send calculated values to docker build via args.
Describe alternatives you've considered
As an alternative, it is possible to migrate to another building tool, e.g., scaffold, bazel, werf, whatever. It looks like an overcomplication, though.
Additional context
Solving problems with unnecessary rebuilds will help us with caching layers in the future.
Is your feature request related to a problem?
COPY . .in the Dockefile is always a tricky thing. It copies more than dex needs, which leads to unwanted behavior.Dockerfile: Changing anything makes rebuilding the dex..git/: Actually, dex needs git for building to extract version (and other things). However, any new branch, tag, or commit invalidates the downward layers of a docker image.examples/: I think the idea is clear.*.md: ...Describe the solution you'd like to see
Describe alternatives you've considered
As an alternative, it is possible to migrate to another building tool, e.g., scaffold, bazel, werf, whatever. It looks like an overcomplication, though.
Additional context
Solving problems with unnecessary rebuilds will help us with caching layers in the future.