Skip to content

Conversation

@jduimovich
Copy link
Contributor

This pull request updates the Dockerfile to use the artifactId, and version output by maven to determine the name of the built jar.

The issue is that if the user changes the version or artifactId in the pom, the old Dockerfile hardcoded these names as demo and 0.0.1-SNAPSHOT. If these are changed in the pom.xml, the docker build would fail in attempting to copy the jar as the name would be incorrect.

This change copies the built file to a known location and copies that to the /app directory in the run layer.

- Dockerfile uses pom.xml values from maven
- artifactId, and version used to find built jar
@maysunfaisal maysunfaisal merged commit e3ae644 into devfile-samples:main Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants