Skip to content

[CHORE] Rename JAR file reference and ENTRYPOINT in Dockerfile #200

Closed

Description

@aniebietafia

Problem

Dockerfile explicitly names the JAR with the old brand in two places:

COPY --from=build /app/target/*.jar UnravelDocs.jar
ENTRYPOINT ["java", "-jar", "UnravelDocs.jar"]

After Issue 1 renames the Maven artifactId to Xtraction, the built JAR will be Xtraction-<version>.jar. The Dockerfile COPY will fail because the destination filename no longer matches the ENTRYPOINT. The production container will fail to start.

Proposed Solution

Update the COPY destination and ENTRYPOINT to reference Xtraction.jar.

User Stories

  • As a DevOps engineer building the Docker image, I want the Dockerfile to correctly name the JAR so docker build succeeds and the container starts without error.

Acceptance Criteria

  • COPY --from=build /app/target/*.jar Xtraction.jar
  • ENTRYPOINT ["java", "-jar", "Xtraction.jar"]
  • docker build -t xtraction-api . succeeds
  • docker run xtraction-api starts the Spring Boot application

Proposed Technical Details

# Before
COPY --from=build /app/target/*.jar UnravelDocs.jar
ENTRYPOINT ["java", "-jar", "UnravelDocs.jar"]

# After
COPY --from=build /app/target/*.jar Xtraction.jar
ENTRYPOINT ["java", "-jar", "Xtraction.jar"]

Tasks

  • Update COPY destination filename
  • Update ENTRYPOINT filename
  • Run docker build and verify image builds successfully
  • Run the container and verify Started XtractionApplication in logs

Open Questions / Considerations

  • Depends on Issue 1 (pom.xml rename) being merged first, since the JAR filename is derived from <artifactId>.
  • Consider using a build argument (ARG JAR_NAME=Xtraction) to make the JAR name configurable without editing the Dockerfile.

Activity

  1. added
    bug
    documentation
    on Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apibugcidependenciesdockerdocumentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions