Allow user to specify which .dockerignore to use for image building #1356
Labels
area/building-images
Issues related to building Docker images
kind/feature
New feature or feature request
Is your feature request related to a problem?
our production image doesn’t include our tests in the image, but we want them in the dev image to reduce the size of the initial sync.
Which solution do you suggest?
allow users to specify which .dockerignore to use for image building
Which alternative solutions exist?
define a hook that calls a devspace custom command which could do something like this:
mv .dockerignore ./devspace/.dockerignore
cp .dockerignore_dev .dockerignore
This hook could be triggered before image building and then a second hook could do this:
mv -f ./devspace/.dockerignore .dockerignore
And this second hook would run after image building
/kind feature
The text was updated successfully, but these errors were encountered: