Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Docker builds should not include locally built resources
Description
If building Openfire locally into a Docker image, the build context is the entire workspace. This means that if an old build exists locally, it'll be copied into the Docker image and be there when mvn package runs, giving unpredictable results.
Improve the .dockerignore to exclude target directories and anything else that appears useless.
If building Openfire locally into a Docker image, the build context is the entire workspace. This means that if an old build exists locally, it'll be copied into the Docker image and be there when mvn package runs, giving unpredictable results.
Improve the .dockerignore to exclude target directories and anything else that appears useless.