Skip to content

Commit

Permalink
fix path dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
MehulKChaudhari committed Feb 2, 2024
1 parent 52ae9c8 commit ac85ca9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions skill-tree/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
FROM openjdk:17-jdk as build
WORKDIR /app
COPY . .
# Ensure the mvnw script is executable
RUN chmod +x mvnw
COPY skill-tree/ .
RUN ./mvnw --version
RUN ./mvnw clean install -DskipTests

FROM openjdk:17-jdk
WORKDIR /app
COPY --from=build /app/target/*.jar app.jar
COPY --from=build /app/skill-tree/target/*.jar app.jar
ENTRYPOINT ["java", "-jar", "app.jar"]

0 comments on commit ac85ca9

Please sign in to comment.