Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
engapa committed Jan 19, 2022
1 parent dd989fa commit b9c1291
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ WORKDIR /var/build/widoco
COPY . .

RUN mvn package && \
mv ./jar/widoco*.jar ./jar/widoco.jar
mv ./JAR/widoco*.jar ./JAR/widoco.jar

# ----
FROM openjdk:17-slim

WORKDIR /usr/local/widoco

COPY --from=BUILD_IMAGE /var/build/widoco/jar/widoco.jar .
COPY --from=BUILD_IMAGE /var/build/widoco/JAR/widoco.jar .

ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -jar widoco.jar ${0} ${@}"]

0 comments on commit b9c1291

Please sign in to comment.