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.

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created October 20, 2020 at 10:56 AM
Updated October 21, 2020 at 10:13 AM
Resolved October 20, 2020 at 1:07 PM