sonatype-nexus-community / nexus-repository-composer

Composer support for the Nexus Repository Manager (work in progress!)
Eclipse Public License 1.0
214 stars 81 forks source link

Unable to build Docker image because COPY command #57

Closed christopher1986 closed 4 years ago

christopher1986 commented 4 years ago

I was trying to build the DockerFile but was unable to do so because the jar file created by the intermediate container could not be copied into the final container.

I was able to resolve this issue by changing COPY instruction from: COPY --from=build /nexus-repository-composer/target/nexus-repository-composer-${COMPOSER_VERSION}.jar ${TARGET_DIR}

into: COPY --from=build /nexus-repository-composer/nexus-repository-composer/target/nexus-repository-composer-${COMPOSER_VERSION}.jar ${TARGET_DIR}