Skip to content

How compiled jar, in case, will be added in build docker image? #3

Description

@masifpak

I was using this code snippet for making docker container having jar file like below. but it could not find jar file.

FROM maven:3.3.9
RUN mkdir /collector
COPY target/collector-1.0-SNAPSHOT.jar /collector
COPY config /collector
WORKDIR /collector
ENTRYPOINT sh -c "java -jar /collector/collector-1.0-SNAPSHOT.jar"

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions