Skip to content

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

@masifpak

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions